notifiable-rails 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifiable/notifier_base.rb +5 -3
- data/lib/notifiable/version.rb +1 -1
- data/spec/batch_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/test_app/log/test.log +3497 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4635f91aa86b39383ba4be40af2549bc68c0f95a
|
4
|
+
data.tar.gz: 8fd626c2accb05f3aa2e530e89fa3932937727cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa6a1fa6ce50fccdfc3b0548b828bf9271732c3e16f8d350090948d6a8e83b161812e68b4d876edd6edac0f36061039fac01aaa34d4f0f2b2c8734fffe068946
|
7
|
+
data.tar.gz: 870b748e391cff0575b7cb8665e6520a69117b474d3b5296cc5f9cb14484d9be58ef96a25658f5bd9f1bcdc48bad22c35f5805f591eb6846dfdc8588de703c91
|
@@ -6,7 +6,7 @@ module Notifiable
|
|
6
6
|
|
7
7
|
def send_notification(notification, device_token)
|
8
8
|
# todo - add before hook
|
9
|
-
enqueue(notification, device_token)
|
9
|
+
enqueue(notification, device_token, custom_params(notification))
|
10
10
|
# todo - add after hook
|
11
11
|
end
|
12
12
|
|
@@ -28,8 +28,10 @@ module Notifiable
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
def
|
32
|
-
|
31
|
+
def custom_params(notification)
|
32
|
+
params = notification.params || {}
|
33
|
+
params[:notification_id] = notification.id
|
34
|
+
params
|
33
35
|
end
|
34
36
|
|
35
37
|
def test_env?
|
data/lib/notifiable/version.rb
CHANGED
data/spec/batch_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/test_app/log/test.log
CHANGED
@@ -206427,3 +206427,3500 @@ Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.3ms)
|
|
206427
206427
|
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206428
206428
|
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
206429
206429
|
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
206430
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
206431
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206432
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206433
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206434
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
206435
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
206436
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206437
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206438
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
206439
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206440
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206441
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206442
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
206443
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206444
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206445
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206446
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206447
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206448
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
206449
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
|
206450
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206451
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
206452
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206453
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206454
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206456
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206457
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206458
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206459
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
206460
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206461
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206462
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206463
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206464
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206465
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
|
206466
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 5], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 2]]
|
206467
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206468
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
206469
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206470
|
+
[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]]
|
206471
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206472
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206473
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
206474
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206475
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
|
206476
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
206477
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
|
206478
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206479
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
206480
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil]]
|
206481
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206482
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 2]]
|
206483
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 2]]
|
206484
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206485
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 4]]
|
206486
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2[0m [["sent_count", 1], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil]]
|
206487
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206488
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
206489
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
|
206490
|
+
[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]]
|
206491
|
+
[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]]
|
206492
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
206493
|
+
[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]]
|
206494
|
+
[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]]
|
206495
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
206496
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
206497
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206498
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206499
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206500
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206501
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206502
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206503
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206504
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206505
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
206506
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206507
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206508
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206509
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206510
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206511
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
206512
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
206513
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206514
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206515
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206516
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
206517
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
206518
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206519
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206520
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206521
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206522
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206523
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206524
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
206525
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206526
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206527
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206528
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206529
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206530
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
206531
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
|
206532
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206533
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
206534
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206535
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
|
206536
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206537
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206538
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206539
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206540
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206541
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
206542
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 2]]
|
206543
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206544
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
206545
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206546
|
+
[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]]
|
206547
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206548
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206549
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
206550
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206551
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
|
206552
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
206553
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
|
206554
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206555
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
206556
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 2], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil]]
|
206557
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206558
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
206559
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
|
206560
|
+
[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]]
|
206561
|
+
[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]]
|
206562
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
206563
|
+
[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]]
|
206564
|
+
[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]]
|
206565
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
206566
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
206567
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206568
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206569
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206570
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206571
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206572
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206573
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206574
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206575
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
206576
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206577
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206578
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206579
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206580
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206581
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
206582
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
206583
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206584
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206585
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206586
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206587
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
206588
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206589
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206590
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206591
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206592
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206593
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
|
206594
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :sms], ["token", "ABCD5"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
|
206595
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206596
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206597
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206598
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206599
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206600
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206601
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206602
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
206603
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
206604
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
206605
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206606
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206607
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206608
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206609
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206610
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206611
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206612
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206613
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
206614
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206615
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206616
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206617
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206618
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206619
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
206620
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
206621
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
206622
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206623
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
206624
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
206625
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
206626
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0[0m
|
206627
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
206628
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
206629
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206630
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206631
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206632
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206633
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206634
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206635
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206636
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206637
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
206638
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206639
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206640
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206641
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206642
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206643
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
206644
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
206645
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206646
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206647
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206648
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206649
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206650
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206651
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206652
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
206653
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206654
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206655
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206656
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206657
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206658
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
206659
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
|
206660
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206661
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
206662
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
206663
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206664
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?)[0m [["device_token_id", 1], ["status", 200]]
|
206665
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206666
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL[0m
|
206667
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
206668
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
206669
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206670
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206671
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206672
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206673
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206674
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206675
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206676
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206677
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
206678
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206679
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206680
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206681
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206682
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206683
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
206684
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
206685
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206686
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-8@example.com"]]
|
206687
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206688
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206689
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206690
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206691
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206692
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1[0m
|
206693
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
|
206694
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206695
|
+
[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
|
206696
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
206697
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206698
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206699
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206700
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206701
|
+
[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", 0]]
|
206702
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206703
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206704
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
206705
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206706
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
206707
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD7"}, "user_email"=>"person-9@example.com", "notification"=>{}}
|
206708
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1[0m
|
206709
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD7') LIMIT 1
|
206710
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
206711
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
|
206712
|
+
[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]]
|
206713
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
206714
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
206715
|
+
Completed 406 Not Acceptable in 4ms (ActiveRecord: 0.4ms)
|
206716
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
206717
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
|
206718
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
206719
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
206720
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
206721
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206722
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206723
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206724
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206725
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206726
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206727
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206728
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206729
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
206730
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206731
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206732
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206733
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206734
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206735
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
206736
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
206737
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206738
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
206739
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206740
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206741
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206742
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206743
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206744
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
206745
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
|
206746
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206747
|
+
[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
|
206748
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
206749
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206750
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206751
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206752
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206753
|
+
[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", 0]]
|
206754
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206755
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
206756
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD8"}, "user_email"=>"person-10@example.com", "notification"=>{}}
|
206757
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
|
206758
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD8') LIMIT 1[0m
|
206759
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
206760
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
206761
|
+
[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]]
|
206762
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
206763
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206764
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notification_statuses" SET "status" = ? WHERE "notifiable_notification_statuses"."id" = 1[0m [["status", -1]]
|
206765
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206766
|
+
[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]]
|
206767
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206768
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", nil]]
|
206769
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206770
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
206771
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
206772
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
|
206773
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
206774
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
206775
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
206776
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206777
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206778
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206779
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206780
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206781
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206782
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206783
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206784
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
206785
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206786
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206787
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206788
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206789
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206790
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
206791
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
206792
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206793
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206794
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206795
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206796
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206797
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206798
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
206799
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
206800
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206801
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206802
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206803
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206804
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206805
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206806
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206807
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206808
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
206809
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206810
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206811
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206812
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206813
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206814
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
206815
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
206816
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206817
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206818
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
206819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206820
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206821
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206822
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
206823
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
206824
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206825
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206826
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206827
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206828
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206829
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206830
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206831
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206832
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
206833
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206834
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206835
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206836
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206837
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206838
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
206839
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
206840
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206841
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206842
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206843
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206844
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206845
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206846
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206847
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?)[0m [["notification_id", 1]]
|
206848
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206849
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206850
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
|
206851
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ?[0m [["id", 1]]
|
206852
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
|
206853
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206854
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
206855
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
206856
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206857
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206858
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206859
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206860
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206861
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206862
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206863
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206864
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
206865
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206866
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206867
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206868
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206869
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206870
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
206871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
206872
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206873
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
206874
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206875
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206876
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206877
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206878
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206879
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
206880
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
|
206881
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206882
|
+
[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
|
206883
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
206884
|
+
Parameters: {"token"=>"ABCD9", "device_token"=>{"token"=>"ABCD9"}}
|
206885
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
206886
|
+
Filter chain halted as :ensure_current_notifiable_user rendered or redirected
|
206887
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
|
206888
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
|
206889
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
206890
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206891
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206892
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206893
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206894
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206895
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206896
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206897
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206898
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
206899
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206900
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206901
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206902
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206903
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206904
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
206905
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
206906
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206907
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
206908
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206909
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
206910
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-12@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
206911
|
+
[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
|
206912
|
+
Unpermitted parameters: user_email, device_token
|
206913
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
206914
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1[0m
|
206915
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206916
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
206917
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
206918
|
+
Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
206919
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
206920
|
+
[1m[35m (0.2ms)[0m DELETE FROM "users";
|
206921
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206922
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
206923
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
206924
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206925
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
206926
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
206927
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206928
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
206929
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
206930
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206931
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
206932
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
206933
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206934
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
206935
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
206936
|
+
[1m[35m (0.1ms)[0m begin transaction
|
206937
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
206938
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
|
206939
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206940
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206941
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206942
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206943
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
206944
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-13@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
|
206945
|
+
[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
|
206946
|
+
Unpermitted parameters: user_email, device_token
|
206947
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
|
206948
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1[0m
|
206949
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206950
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
206951
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
206952
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
|
206953
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206954
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
|
206955
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
206956
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
206957
|
+
[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
|
206958
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
206959
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
206960
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206961
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
206962
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
206963
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206964
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
206965
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
206966
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206967
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
206968
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
206969
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206970
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
206971
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
206972
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206973
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
206974
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
206975
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
206976
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
206977
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206978
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
206979
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
206980
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
206981
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
206982
|
+
Unpermitted parameters: device_token
|
206983
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
206984
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206985
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
206986
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
206987
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
206988
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206989
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
|
206990
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
206991
|
+
[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
|
206992
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
206993
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
206994
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
206995
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
206996
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
206997
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
206998
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
206999
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207000
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207001
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207002
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207003
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207004
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207005
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207006
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207007
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207008
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207009
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
207010
|
+
[1m[35m (0.1ms)[0m begin transaction
|
207011
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
207012
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
207013
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207014
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
207015
|
+
Parameters: {"token"=>"ZXY987", "user_email"=>"person-14@example.com", "device_token"=>{"token"=>"ZXY987"}}
|
207016
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
207017
|
+
[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
|
207018
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
207019
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207020
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
207021
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207022
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207023
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
207024
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207025
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207026
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
207027
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 2]]
|
207028
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207029
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
207030
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10'[0m
|
207031
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
207032
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207033
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207034
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207035
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207036
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207037
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207038
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207039
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207040
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207041
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207042
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207043
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207044
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207045
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207046
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
207047
|
+
[1m[35m (0.1ms)[0m begin transaction
|
207048
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
207049
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
207050
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207051
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207052
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
207053
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD11"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
207054
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207055
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207056
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-16@example.com"]]
|
207057
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207058
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
207059
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-16@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
207060
|
+
[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
|
207061
|
+
Unpermitted parameters: user_email, device_token
|
207062
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
|
207063
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1[0m
|
207064
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207065
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
207066
|
+
[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
|
207067
|
+
[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", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
207068
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207069
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
|
207070
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
207071
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
207072
|
+
[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
|
207073
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
207074
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207075
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
207076
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207077
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
207078
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207079
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207080
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207081
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207082
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207083
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207084
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207085
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207086
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207087
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207088
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207089
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207090
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207091
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207092
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
207093
|
+
[1m[35m (0.1ms)[0m begin transaction
|
207094
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207095
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
207096
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207097
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207098
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00]]
|
207099
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207100
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
207101
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-17@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
207102
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
207103
|
+
Unpermitted parameters: user_email, device_token
|
207104
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
|
207105
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1[0m
|
207106
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207107
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
207108
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
207109
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:13:45 UTC +00:00], ["user_id", 1]]
|
207110
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207111
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
207112
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
207113
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
207114
|
+
[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
|
207115
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
207116
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
207117
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207118
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207119
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207120
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207121
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207122
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207123
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207124
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207125
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
207126
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207127
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207128
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207129
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207130
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207131
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
207132
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207133
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
207134
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
207135
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207136
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207137
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
|
207138
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207139
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207140
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
207141
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["user_id", 1]]
|
207142
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207143
|
+
[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
|
207144
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207145
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
207146
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207147
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
207148
|
+
Parameters: {"token"=>"ABCD12", "user_email"=>"person-19@example.com", "device_token"=>{"token"=>"ABCD12"}}
|
207149
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
|
207150
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
207151
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
207152
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1[0m
|
207153
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
|
207154
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12'
|
207155
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
207156
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207157
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207158
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207159
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207160
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207161
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207162
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207163
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207164
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
207165
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207166
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207167
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207168
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207169
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207170
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
207171
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207172
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207173
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-20@example.com"]]
|
207174
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207175
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
207176
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
|
207177
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207178
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207179
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
207180
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["user_id", 1]]
|
207181
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207182
|
+
[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
|
207183
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
207184
|
+
Parameters: {"token"=>"ABCD13", "user_email"=>"person-20@example.com", "device_token"=>{"token"=>"ABCD13"}}
|
207185
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1[0m
|
207186
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
207187
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
207188
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
|
207189
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
207190
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
207191
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207192
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
|
207193
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13'
|
207194
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
207195
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207196
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207197
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207198
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207199
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207200
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207201
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207202
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207203
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
207204
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207205
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207206
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207207
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207208
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207209
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
207210
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207211
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207212
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
|
207213
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207214
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207215
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
|
207216
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207217
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
207218
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
207219
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207220
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207221
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207222
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207223
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207224
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207225
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207226
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207227
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
207228
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207229
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207230
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207231
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207232
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207233
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
207234
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207235
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207236
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
207237
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207238
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207239
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
|
207240
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207242
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
207243
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD14"], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["user_id", 1]]
|
207244
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207245
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207246
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
|
207247
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207248
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207249
|
+
[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", 0]]
|
207250
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207251
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
207252
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
207253
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
|
207254
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207255
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
207256
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil]]
|
207257
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207258
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
207259
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
207260
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
207261
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207262
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207263
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207264
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207265
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207266
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207267
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207268
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207269
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
207270
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207271
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207272
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207273
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207274
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207275
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
207276
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207277
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
207278
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-22@example.com"]]
|
207279
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207280
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207281
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
|
207282
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207283
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
207284
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1[0m
|
207285
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD15"], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["user_id", 1]]
|
207286
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207287
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
207288
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
|
207289
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207290
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
207291
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207292
|
+
[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", 0]]
|
207293
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207294
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
207295
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
|
207296
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0[0m [["notification_id", 1]]
|
207297
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207298
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
207299
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil]]
|
207300
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207301
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
207302
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
207303
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
|
207304
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
207305
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207306
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207307
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207308
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207309
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207310
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207311
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207312
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207313
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
207314
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207315
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207316
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207317
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207318
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207319
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
207320
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207321
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207322
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-23@example.com"]]
|
207323
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207324
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
207325
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
|
207326
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207327
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207328
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1[0m
|
207329
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD16"], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["user_id", 1]]
|
207330
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207331
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
207332
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:13:46 UTC +00:00]]
|
207333
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
207334
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
207335
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
207336
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207337
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207338
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207339
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207340
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207341
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207342
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207343
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207344
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207345
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207346
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207347
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207348
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207349
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207350
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
207351
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
207352
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
207353
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
207354
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
207355
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207356
|
+
[1m[35mSQL (3.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207357
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207358
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
207359
|
+
[1m[36mNotifiable::DeviceToken Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
207360
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207361
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207362
|
+
[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
|
207363
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
207364
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207365
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207366
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207367
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207368
|
+
[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", 0]]
|
207369
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207370
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207371
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-2@example.com"]]
|
207372
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207373
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
207374
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD1"}, "user_email"=>"person-2@example.com", "notification"=>{}}
|
207375
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1[0m
|
207376
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD1') LIMIT 1
|
207377
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
207378
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
|
207379
|
+
[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]]
|
207380
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
207381
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
207382
|
+
Completed 406 Not Acceptable in 4ms (ActiveRecord: 0.4ms)
|
207383
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
207384
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
|
207385
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
207386
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
207387
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
207388
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207389
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207390
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207391
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207392
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207393
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207394
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207395
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207396
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
207397
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207398
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207399
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207400
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207401
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207402
|
+
[1m[35m (6.3ms)[0m rollback transaction
|
207403
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207404
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
207405
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
207406
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207407
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
207408
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207409
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207410
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207411
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
207412
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207413
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207414
|
+
[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
|
207415
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
207416
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207417
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207418
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207419
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207420
|
+
[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", 0]]
|
207421
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207422
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
207423
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD2"}, "user_email"=>"person-3@example.com", "notification"=>{}}
|
207424
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
|
207425
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD2') LIMIT 1[0m
|
207426
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
207427
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1[0m
|
207428
|
+
[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]]
|
207429
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
207430
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207431
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notification_statuses" SET "status" = ? WHERE "notifiable_notification_statuses"."id" = 1[0m [["status", -1]]
|
207432
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207433
|
+
[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]]
|
207434
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207435
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil]]
|
207436
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207437
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
207438
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
207439
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
|
207440
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
207441
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
207442
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
207443
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207444
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207445
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207446
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207447
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207448
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207449
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207450
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207451
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
207452
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207453
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207454
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207455
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207456
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207457
|
+
[1m[35m (4.2ms)[0m rollback transaction
|
207458
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207459
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207460
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207461
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207462
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
207463
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
207464
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207465
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
207466
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207467
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207468
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207469
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207470
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
207471
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207472
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207473
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207474
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207475
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207476
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
207477
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207478
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207479
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
207480
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
207481
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207482
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207483
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207484
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207485
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207486
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207487
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207488
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207489
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
207490
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207491
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207492
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207493
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207494
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207495
|
+
[1m[35m (14.7ms)[0m rollback transaction
|
207496
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207497
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207498
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207499
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207500
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
207501
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207502
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207503
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207504
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207505
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207506
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207507
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207508
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-5@example.com"]]
|
207509
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207510
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207511
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207512
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207513
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207514
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
207515
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207516
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207517
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
207518
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
207519
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207520
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207521
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207522
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207523
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207524
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207525
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207526
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207527
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
207528
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207529
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207530
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207531
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207532
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207533
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
207534
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207535
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207536
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207537
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207538
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207539
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
207540
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207541
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207542
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207543
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207544
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207545
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
|
207546
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :sms], ["token", "ABCD5"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207547
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207548
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207549
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207550
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207551
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207552
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207553
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207554
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
207555
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
207556
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
207557
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207558
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207559
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207560
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207561
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207562
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207563
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207564
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207565
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
207566
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207567
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207568
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207569
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207570
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207571
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
207572
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
207573
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207574
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
207575
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207576
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207577
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207578
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207579
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207580
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
207581
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD6"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207582
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207583
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207584
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207585
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207586
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
207587
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
207588
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207589
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207590
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207591
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207592
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207593
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207594
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207595
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207596
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207597
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207598
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207599
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207600
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207601
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207602
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
207603
|
+
[1m[35m (0.1ms)[0m begin transaction
|
207604
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207605
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
207606
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207607
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207608
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207609
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207610
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207611
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
207612
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD7"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207613
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207614
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207615
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207616
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207617
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
207618
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207619
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207620
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207621
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207622
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207623
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207624
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207625
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207626
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207627
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207628
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207629
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207630
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207631
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207632
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
207633
|
+
[1m[35m (0.0ms)[0m begin transaction
|
207634
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207635
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
|
207636
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207637
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207638
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207639
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207640
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207641
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
|
207642
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD8"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207643
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207644
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207645
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207646
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207647
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
207648
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
207649
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207650
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207651
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207652
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207653
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207654
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207655
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207656
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207657
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
207658
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207659
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207660
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207661
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207662
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207663
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
207664
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
207665
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207666
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
207667
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207668
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207669
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207670
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207671
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
207672
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-10@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
207673
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
207674
|
+
Unpermitted parameters: user_email, device_token
|
207675
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
207676
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
|
207677
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207678
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
207679
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
207680
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207681
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207682
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
|
207683
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
207684
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
207685
|
+
[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
|
207686
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
207687
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
207688
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207689
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207690
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207691
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207692
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207693
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207694
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207695
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207696
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207697
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207698
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207699
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207700
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207701
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207702
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
207703
|
+
[1m[35m (0.0ms)[0m begin transaction
|
207704
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207705
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207706
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207707
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
207708
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
207709
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
207710
|
+
Unpermitted parameters: device_token
|
207711
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
207712
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207713
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
207714
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
207715
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207716
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207717
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.8ms)
|
207718
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
207719
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
207720
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
207721
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "users"
|
207722
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
207723
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207724
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207725
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207726
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207727
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207728
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207729
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207730
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207731
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
207732
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207733
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207734
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207735
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207736
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207737
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
207738
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
207739
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207740
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
207741
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207742
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
207743
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
207744
|
+
[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
|
207745
|
+
Unpermitted parameters: user_email, device_token
|
207746
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
|
207747
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
207748
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207749
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
207750
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
207751
|
+
Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
207752
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
207753
|
+
[1m[35m (0.2ms)[0m DELETE FROM "users";
|
207754
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207755
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207756
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207757
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207758
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207759
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
207760
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207761
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207762
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207763
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207764
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207765
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207766
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207767
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207768
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
207769
|
+
[1m[35m (0.0ms)[0m begin transaction
|
207770
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207771
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
|
207772
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207773
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
207774
|
+
Parameters: {"token"=>"ZXY987", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ZXY987"}}
|
207775
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
207776
|
+
[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
|
207777
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
207778
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207779
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
207780
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207781
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207782
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207783
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207784
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207785
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
207786
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 2]]
|
207787
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207788
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
207789
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'[0m
|
207790
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
207791
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207792
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207793
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207794
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207795
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207796
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207797
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207798
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207799
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207800
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207801
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207802
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207803
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207804
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207805
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
207806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
207807
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207808
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
207809
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207810
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207811
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207812
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207813
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207814
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
|
207815
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207816
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207817
|
+
[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
|
207818
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207819
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
207820
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207821
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
207822
|
+
Parameters: {"token"=>"ABCD10", "user_email"=>"person-15@example.com", "device_token"=>{"token"=>"ABCD10"}}
|
207823
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1[0m
|
207824
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
207825
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
207826
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
|
207827
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
207828
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10'[0m
|
207829
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
207830
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207831
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207832
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207833
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207834
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207835
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207836
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207837
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207838
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207839
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207840
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207841
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207842
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207843
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207844
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
207845
|
+
[1m[35m (0.0ms)[0m begin transaction
|
207846
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207847
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
207848
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207849
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
207850
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207851
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207852
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207853
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
|
207854
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207855
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
207856
|
+
[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
|
207857
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
207858
|
+
Parameters: {"token"=>"ABCD11", "device_token"=>{"token"=>"ABCD11"}}
|
207859
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
207860
|
+
Filter chain halted as :ensure_current_notifiable_user rendered or redirected
|
207861
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
|
207862
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'[0m
|
207863
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
207864
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207865
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207866
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207867
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207868
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207869
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207870
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207871
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207872
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207873
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207874
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207875
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207876
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207877
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207878
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
207879
|
+
[1m[35m (0.1ms)[0m begin transaction
|
207880
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207881
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207882
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207883
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207884
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
207885
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD12"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207886
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207887
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207888
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-17@example.com"]]
|
207889
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207890
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
207891
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-17@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
207892
|
+
[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
|
207893
|
+
Unpermitted parameters: user_email, device_token
|
207894
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
|
207895
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1[0m
|
207896
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207897
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
207898
|
+
[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
|
207899
|
+
[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", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207900
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207901
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
|
207902
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
207903
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
207904
|
+
[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
|
207905
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
207906
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207907
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207908
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207909
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
207910
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207911
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
207912
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
207913
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207914
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
207915
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
207916
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207917
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
207918
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
207919
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207920
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
207921
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
207922
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207923
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
207924
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
207925
|
+
[1m[35m (0.0ms)[0m begin transaction
|
207926
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207927
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
|
207928
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207929
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207930
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207931
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207932
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
207933
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-18@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
|
207934
|
+
[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
|
207935
|
+
Unpermitted parameters: user_email, device_token
|
207936
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
|
207937
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1[0m
|
207938
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207939
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
207940
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
207941
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207942
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207943
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
|
207944
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
207945
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
207946
|
+
[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
|
207947
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
207948
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
207949
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207950
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207951
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207952
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207953
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207954
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207955
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207956
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207957
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
207958
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207959
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207960
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
207961
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207962
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
207963
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
207964
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
207965
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207966
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-19@example.com"]]
|
207967
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
207968
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207969
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
207970
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207971
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
207972
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
207973
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
207974
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207975
|
+
[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
|
207976
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
207977
|
+
Parameters: {"token"=>"ABCD13", "user_email"=>"person-19@example.com", "device_token"=>{"token"=>"ABCD13"}}
|
207978
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1[0m
|
207979
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
207980
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
207981
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
|
207982
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
207983
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
207984
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
207985
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
207986
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13'
|
207987
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
207988
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207989
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
207990
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
207991
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207992
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
207993
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
207994
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
207995
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
207996
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
207997
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
207998
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
207999
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208000
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208001
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208002
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208003
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208004
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208005
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208006
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208007
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208008
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208009
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208010
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
208011
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208012
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208013
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208014
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208015
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208016
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208017
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208018
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208019
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208020
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208021
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208022
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208023
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208024
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208025
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208026
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
208027
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208028
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
208029
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208030
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
208031
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208032
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208033
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208034
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
208035
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208036
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208037
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208038
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
208039
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208040
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208041
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208042
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208043
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208044
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208045
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208046
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208047
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208048
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208049
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208050
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
208051
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208052
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208053
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208054
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208055
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208056
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208057
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208058
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
208059
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208060
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208061
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208062
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208063
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208064
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208065
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208066
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208067
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208068
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208069
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208070
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208071
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208072
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208073
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208074
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208075
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208076
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208077
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208078
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208079
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
208080
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208081
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208082
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208083
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?)[0m [["notification_id", 1]]
|
208084
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208085
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208086
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
|
208087
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ?[0m [["id", 1]]
|
208088
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
|
208089
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208090
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
208091
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208092
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208093
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208094
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208095
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208096
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208097
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208098
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208099
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208100
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208101
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208102
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208103
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208104
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208105
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208106
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208108
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208109
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208110
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208111
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
208112
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
208113
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0[0m
|
208114
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
208115
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208116
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208117
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208118
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208119
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208120
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208121
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208122
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208123
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208124
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
208125
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208126
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208127
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208128
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208129
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208130
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208132
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208133
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208134
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208135
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208136
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208137
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208138
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208139
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
208140
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208141
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208142
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00]]
|
208143
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208144
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208145
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
208146
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 17 Mar 2014 00:58:22 UTC +00:00], ["user_id", 1]]
|
208147
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208148
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
208149
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
208150
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
208151
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208152
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
208153
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
208154
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208155
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
208156
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
208157
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208158
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
208159
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
208160
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208161
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
208162
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
208163
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208164
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
208165
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
208166
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
208167
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208168
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00]]
|
208169
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208170
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208171
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00]]
|
208172
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208173
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
208174
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208175
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208176
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208177
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208178
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208179
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208180
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208181
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208182
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208183
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208184
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208185
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208186
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208187
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208188
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208189
|
+
[1m[35m (6.7ms)[0m rollback transaction
|
208190
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208191
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208192
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00]]
|
208193
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208194
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208195
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
|
208196
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD1"], ["updated_at", Mon, 17 Mar 2014 00:58:40 UTC +00:00]]
|
208197
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208198
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208199
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
|
208200
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208201
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
208202
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-1@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
208203
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
|
208204
|
+
Unpermitted parameters: user_email, device_token
|
208205
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1[0m
|
208206
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
|
208207
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208208
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
208209
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
208210
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208211
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208212
|
+
Completed 200 OK in 8ms (ActiveRecord: 0.7ms)
|
208213
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
208214
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
208215
|
+
[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
|
208216
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
208217
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208218
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208219
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208220
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
208221
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208222
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208223
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208224
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208225
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208226
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208227
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208228
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208229
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
208230
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208231
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208232
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208233
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208234
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208235
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
208236
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208237
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208238
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-2@example.com"]]
|
208239
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208240
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
208241
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-2@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
208242
|
+
[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
|
208243
|
+
Unpermitted parameters: user_email, device_token
|
208244
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
|
208245
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1[0m
|
208246
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208247
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
208248
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
208249
|
+
Completed 422 Unprocessable Entity in 31ms (Views: 0.2ms | ActiveRecord: 0.4ms)
|
208250
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
208251
|
+
[1m[35m (0.3ms)[0m DELETE FROM "users";
|
208252
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208253
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
208254
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
208255
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208256
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
208257
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
208258
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208259
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
208260
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
208261
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208262
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
208263
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
208264
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208265
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
208266
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
208267
|
+
[1m[35m (0.1ms)[0m begin transaction
|
208268
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
208269
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208270
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208271
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
208272
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
208273
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
208274
|
+
Unpermitted parameters: device_token
|
208275
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
208276
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208277
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
208278
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
208279
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208280
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208281
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.8ms)
|
208282
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
208283
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
208284
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
208285
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "users"
|
208286
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208287
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208288
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208289
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208290
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208291
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208292
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208293
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208294
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208295
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
208296
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208297
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208298
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208299
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208300
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208301
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208302
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208303
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
208304
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
208305
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208306
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
208307
|
+
Parameters: {"token"=>"ZXY987", "user_email"=>"person-3@example.com", "device_token"=>{"token"=>"ZXY987"}}
|
208308
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1[0m
|
208309
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
208310
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
208311
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208312
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
|
208313
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208314
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208315
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208316
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208317
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208318
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
|
208319
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 2]]
|
208320
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208321
|
+
[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
|
208322
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'
|
208323
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208324
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208325
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208326
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208327
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208328
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208329
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208330
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208331
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208332
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
208333
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208334
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208335
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208336
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208337
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208338
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208339
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
208340
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208341
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-5@example.com"]]
|
208342
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208343
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208344
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208345
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208346
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208347
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
208348
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208349
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208350
|
+
[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
|
208351
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
208352
|
+
Parameters: {"token"=>"ABCD3", "user_email"=>"person-5@example.com", "device_token"=>{"token"=>"ABCD3"}}
|
208353
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1[0m
|
208354
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
208355
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
208356
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
|
208357
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208358
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
208359
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208360
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
|
208361
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
|
208362
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
208363
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208364
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208365
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208366
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208367
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208368
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208369
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208370
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208371
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
208372
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208373
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208374
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208375
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208376
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208377
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
208378
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
208379
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
208380
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-6@example.com"]]
|
208381
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208382
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208383
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208384
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208385
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208386
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
208387
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208388
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208389
|
+
[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
|
208390
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
208391
|
+
Parameters: {"token"=>"ABCD4", "device_token"=>{"token"=>"ABCD4"}}
|
208392
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
208393
|
+
Filter chain halted as :ensure_current_notifiable_user rendered or redirected
|
208394
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
|
208395
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
|
208396
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208397
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208398
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208399
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208400
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208401
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208402
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208403
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208404
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208405
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
208406
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208407
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208408
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208409
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208410
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208411
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208412
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
208413
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208414
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
208415
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208416
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208417
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208418
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208419
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
208420
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-7@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
208421
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
208422
|
+
Unpermitted parameters: user_email, device_token
|
208423
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1[0m
|
208424
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
|
208425
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208426
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
208427
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
208428
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208429
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208430
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
208431
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
208432
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
208433
|
+
[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
|
208434
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
208435
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
208436
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208437
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
208438
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
208439
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208440
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
208441
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
208442
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208443
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
208444
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
208445
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208446
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
208447
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
208448
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208449
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
208450
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
208451
|
+
[1m[35m (0.1ms)[0m begin transaction
|
208452
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208453
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
208454
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208456
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208457
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208458
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
208459
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-8@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
|
208460
|
+
[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
|
208461
|
+
Unpermitted parameters: user_email, device_token
|
208462
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
|
208463
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1[0m
|
208464
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208465
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
208466
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
208467
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208468
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208469
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
208470
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
208471
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
208472
|
+
[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
|
208473
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
208474
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208475
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208476
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208477
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
208478
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208479
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208480
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208481
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208482
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208483
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
208484
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208485
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208486
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208487
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208488
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208489
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
208490
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
208491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208492
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
208493
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208494
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208495
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208496
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208497
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208498
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
208499
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208500
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208501
|
+
[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
|
208502
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208503
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
|
208504
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208505
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
208506
|
+
Parameters: {"token"=>"ABCD5", "user_email"=>"person-10@example.com", "device_token"=>{"token"=>"ABCD5"}}
|
208507
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
|
208508
|
+
[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
|
208509
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
208510
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
208511
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
208512
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
|
208513
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208514
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208515
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208516
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208517
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208518
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208519
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208520
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208521
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208522
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
208523
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208524
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208525
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208526
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208527
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208528
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208529
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
208530
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208531
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208532
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208533
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208534
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208535
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208536
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208537
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
208538
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208539
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208540
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208541
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208542
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208543
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
208544
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208545
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208546
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
208547
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
208548
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
208549
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208550
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
208551
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
208552
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208553
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
208554
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
208555
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208556
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
208557
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
208558
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208559
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
208560
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
208561
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208562
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
208563
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
208564
|
+
[1m[35m (0.0ms)[0m begin transaction
|
208565
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208566
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208567
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208568
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
208569
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL[0m
|
208570
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
|
208571
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
208572
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
208573
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208574
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
208575
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
208576
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208577
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
208578
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
208579
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208580
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
208581
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
208582
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208583
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
208584
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
208585
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208586
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
208587
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
208588
|
+
[1m[35m (0.0ms)[0m begin transaction
|
208589
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
208590
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
|
208591
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208592
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208593
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208594
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208595
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208596
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
208597
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD7"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208598
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208599
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208600
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208601
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208602
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
208603
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
208604
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
208605
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208606
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
208607
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
208608
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
|
208609
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208610
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
208611
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil]]
|
208612
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208613
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
208614
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
208615
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1[0m
|
208616
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
208617
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208618
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
208619
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
208620
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208621
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
208622
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
208623
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208624
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
208625
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
208626
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208627
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
208628
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
208629
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208630
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
208631
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
208632
|
+
[1m[35m (0.1ms)[0m begin transaction
|
208633
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208634
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
208635
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208636
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208637
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208638
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208639
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208640
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
|
208641
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD8"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208642
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208643
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208644
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208645
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208646
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208647
|
+
[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", 0]]
|
208648
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208649
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
208650
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
|
208651
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0[0m [["notification_id", 1]]
|
208652
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208653
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
208654
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil]]
|
208655
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208656
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
208657
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
208658
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
208659
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208660
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
208661
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
208662
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208663
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
208664
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
208665
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208666
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
208667
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
208668
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208669
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
208670
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
208671
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208672
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
208673
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
208674
|
+
[1m[35m (0.1ms)[0m begin transaction
|
208675
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208676
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
|
208677
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208678
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208679
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208680
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208681
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208682
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
|
208683
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD9"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208684
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208685
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208686
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208687
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208688
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
208689
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
208690
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208691
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208692
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208693
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208694
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208695
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208696
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208697
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208698
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208699
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208700
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208701
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208702
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208703
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208704
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208705
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208706
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208707
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208708
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208709
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
208710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208711
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208712
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208713
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208714
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208715
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208716
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208717
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-16@example.com"]]
|
208718
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208719
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208720
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208721
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208722
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208723
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
208724
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208725
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208726
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
208727
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
208728
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208729
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208730
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208731
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208732
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208733
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208734
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208735
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208736
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208737
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208738
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208739
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208740
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208741
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208742
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
208743
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
208744
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208745
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208746
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208747
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
208748
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208749
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208750
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208751
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
208752
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208753
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208754
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208755
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-17@example.com"]]
|
208756
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208757
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208758
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208759
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208760
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208761
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
208762
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208763
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208764
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
208765
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208766
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208767
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208768
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208769
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208770
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208771
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208772
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208773
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208774
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208775
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208776
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208777
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208778
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208779
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208780
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
208781
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208782
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208783
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208784
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208785
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208786
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
|
208787
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208788
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208789
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208790
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208791
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208792
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
208793
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :sms], ["token", "ABCD12"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208794
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208795
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208796
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208797
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208798
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208799
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208800
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208801
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
208802
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
208803
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
208804
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208805
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208806
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208807
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208808
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208809
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208810
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208811
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208812
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208813
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208814
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208815
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208816
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208817
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208818
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208819
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208820
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208821
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208822
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208823
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208824
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208825
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208826
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
208827
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208828
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208829
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208830
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208831
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208832
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208833
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208834
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208835
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208836
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208837
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208838
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208839
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208840
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208841
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208842
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208843
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208844
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208845
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208846
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208847
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208848
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208849
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208850
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
208851
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208852
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208853
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208854
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208855
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208856
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208857
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208858
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208859
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208860
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208861
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208862
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208863
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208864
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208865
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208866
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208867
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208868
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208869
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208870
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208871
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208872
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208873
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208874
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208875
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?)[0m [["notification_id", 1]]
|
208876
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
208877
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208878
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
|
208879
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ?[0m [["id", 1]]
|
208880
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
|
208881
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208882
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
208883
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208884
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208885
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208886
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
208887
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208888
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208889
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208890
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208891
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208892
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208893
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208894
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208895
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208896
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208897
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208898
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
208899
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208900
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208901
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-19@example.com"]]
|
208902
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208903
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208904
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208905
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208906
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208907
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
208908
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208909
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208910
|
+
[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
|
208911
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
208912
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208913
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208914
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208915
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208916
|
+
[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", 0]]
|
208917
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208918
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
208919
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD13"}, "user_email"=>"person-19@example.com", "notification"=>{}}
|
208920
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
|
208921
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD13') LIMIT 1[0m
|
208922
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
208923
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1[0m
|
208924
|
+
[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]]
|
208925
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
208926
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208927
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notification_statuses" SET "status" = ? WHERE "notifiable_notification_statuses"."id" = 1[0m [["status", -1]]
|
208928
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208929
|
+
[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]]
|
208930
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208931
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil]]
|
208932
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208933
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.9ms)
|
208934
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
208935
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
|
208936
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
208937
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
208938
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208939
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208940
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208941
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208942
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208943
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208944
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208945
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208946
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208947
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
208948
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208949
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
208950
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
208951
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208952
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
208953
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
208954
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208955
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208956
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-20@example.com"]]
|
208957
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208958
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208959
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208960
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208961
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208962
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
208963
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["user_id", 1]]
|
208964
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208965
|
+
[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
|
208966
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
208967
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208968
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:58:41 UTC +00:00]]
|
208969
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208970
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
208971
|
+
[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", 0]]
|
208972
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
208973
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
208974
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
208975
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
208976
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
208977
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD14"}, "user_email"=>"person-21@example.com", "notification"=>{}}
|
208978
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1[0m
|
208979
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD14') LIMIT 1
|
208980
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
208981
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
|
208982
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
208983
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
208984
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
208985
|
+
Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.3ms)
|
208986
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
208987
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
|
208988
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
208989
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
208990
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
208991
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208992
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
208993
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
208994
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
208995
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
208996
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
208997
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
208998
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
208999
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209000
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209001
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209002
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209003
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209004
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209005
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209006
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
209007
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209008
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209009
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209010
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209011
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209012
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209013
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
209014
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209015
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209016
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209017
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209018
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209019
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209020
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209021
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209022
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209023
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209024
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209025
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209026
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209027
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209028
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209029
|
+
[1m[35m (6.7ms)[0m rollback transaction
|
209030
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209031
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209032
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209033
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209034
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
209035
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
209036
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0[0m
|
209037
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
209038
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209039
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209040
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209041
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209042
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209043
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209044
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209045
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209046
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209047
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209048
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209049
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209050
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209051
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209052
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209053
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209054
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
209055
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209056
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209057
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209058
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209059
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209060
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209061
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209062
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-2@example.com"]]
|
209063
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209064
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209065
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209066
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209067
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209068
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
209069
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209070
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209071
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
209072
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
209073
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209074
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?)[0m [["device_token_id", 1], ["status", 200]]
|
209075
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209076
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL[0m
|
209077
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
209078
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
209079
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209080
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209081
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209082
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209083
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209084
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209085
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209086
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209087
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209088
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209089
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209090
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209091
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209092
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209093
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
209094
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209095
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209096
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209097
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209098
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
209099
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209100
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209101
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209102
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209103
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209104
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209105
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209106
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
209107
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
209108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209109
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209110
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209111
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209112
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
209113
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209114
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209115
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
209116
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209117
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
|
209118
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209119
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209120
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209121
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209122
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209123
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
|
209124
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 2]]
|
209125
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209126
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
209127
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209128
|
+
[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]]
|
209129
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209130
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209131
|
+
[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]]
|
209132
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209133
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
|
209134
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
209135
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
|
209136
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209137
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
209138
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 2], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
|
209139
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209140
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
209141
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
|
209142
|
+
[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]]
|
209143
|
+
[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]]
|
209144
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
209145
|
+
[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]]
|
209146
|
+
[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]]
|
209147
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
209148
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
209149
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209150
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209151
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209152
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209153
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209154
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209155
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209156
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209157
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209158
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209159
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209160
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209161
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209162
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209163
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209164
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209165
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209166
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209167
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209168
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
209169
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209170
|
+
[1m[36mSQL (25.5ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209171
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
209172
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209173
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209174
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209175
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209176
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-5@example.com"]]
|
209177
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209178
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209179
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209180
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209181
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209182
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
209183
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209184
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209185
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
209186
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209187
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209188
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209189
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209190
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209191
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209192
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209193
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
209194
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209195
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209196
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209197
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209198
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209199
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
|
209200
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 5], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 2]]
|
209201
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209202
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
209203
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209204
|
+
[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]]
|
209205
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209206
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209207
|
+
[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]]
|
209208
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209209
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
|
209210
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
209211
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
|
209212
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209213
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
209214
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
|
209215
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209216
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 2]]
|
209217
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 2]]
|
209218
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209219
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 4]]
|
209220
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2[0m [["sent_count", 1], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
|
209221
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209222
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
209223
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
|
209224
|
+
[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]]
|
209225
|
+
[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]]
|
209226
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
209227
|
+
[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]]
|
209228
|
+
[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]]
|
209229
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
209230
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
209231
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209232
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209233
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209234
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209235
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209236
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209237
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209238
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209239
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209240
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209241
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209242
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209243
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209244
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209245
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209246
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209247
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209248
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209249
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209250
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209251
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
|
209252
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209253
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209254
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209255
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209256
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209257
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
|
209258
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :sms], ["token", "ABCD6"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209259
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209260
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209261
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209262
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209263
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209264
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209265
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209266
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
209267
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
209268
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
209269
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209270
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209271
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209272
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209273
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209274
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209275
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209276
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209277
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209278
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209279
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209280
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209281
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209282
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209283
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
209284
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
209285
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209286
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-8@example.com"]]
|
209287
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209288
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209289
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209290
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209291
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209292
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1[0m
|
209293
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209294
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209295
|
+
[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
|
209296
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
209297
|
+
Parameters: {"token"=>"ABCD7", "device_token"=>{"token"=>"ABCD7"}}
|
209298
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
209299
|
+
Filter chain halted as :ensure_current_notifiable_user rendered or redirected
|
209300
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
|
209301
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
|
209302
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209303
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209304
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209305
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
209306
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209307
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209308
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209309
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209310
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209311
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
209312
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209313
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209314
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209315
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209316
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209317
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
209318
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
209319
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209320
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209321
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209322
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
209323
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
209324
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
209325
|
+
Unpermitted parameters: device_token
|
209326
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
209327
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209328
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
209329
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
209330
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209331
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209332
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
209333
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
209334
|
+
[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
|
209335
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
209336
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
209337
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
209338
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209339
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
209340
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
209341
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209342
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
209343
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
209344
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209345
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
209346
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
209347
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209348
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
209349
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
209350
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209351
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
209352
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
209353
|
+
[1m[35m (0.1ms)[0m begin transaction
|
209354
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209355
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
|
209356
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209357
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209358
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209359
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209360
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209361
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
|
209362
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209363
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209364
|
+
[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
|
209365
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209366
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
209367
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209368
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
209369
|
+
Parameters: {"token"=>"ABCD8", "user_email"=>"person-10@example.com", "device_token"=>{"token"=>"ABCD8"}}
|
209370
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
209371
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
209372
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
209373
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
|
209374
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
|
209375
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'[0m
|
209376
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
209377
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209378
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
209379
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
209380
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209381
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
209382
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
209383
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209384
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
209385
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
209386
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209387
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
209388
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
209389
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209390
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
209391
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
209392
|
+
[1m[35m (0.0ms)[0m begin transaction
|
209393
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209394
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
|
209395
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209396
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
209397
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
209398
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
|
209399
|
+
Unpermitted parameters: user_email, device_token
|
209400
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
209401
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
|
209402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209403
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
209404
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
209405
|
+
Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
209406
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
209407
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM "users";[0m
|
209408
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209409
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209410
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
209411
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209412
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209413
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209414
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209415
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209416
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209417
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209418
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209419
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209420
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209421
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209422
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
209423
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
209424
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209425
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
209426
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209427
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209428
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209429
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209430
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209431
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
209432
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209433
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209434
|
+
[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
|
209435
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
209436
|
+
Parameters: {"token"=>"ABCD9", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ABCD9"}}
|
209437
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1[0m
|
209438
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
209439
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
209440
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
209441
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209442
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
209443
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209444
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
209445
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
|
209446
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209447
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209448
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209449
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209450
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209451
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209452
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209453
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209454
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209455
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
209456
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209457
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209458
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209459
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209460
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209461
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209462
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
209463
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209464
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
209465
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209466
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209467
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209468
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209469
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
209470
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-13@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
209471
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
209472
|
+
Unpermitted parameters: user_email, device_token
|
209473
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1[0m
|
209474
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
|
209475
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209476
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
209477
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
209478
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209479
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209480
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
209481
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
209482
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
209483
|
+
[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
|
209484
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
209485
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
209486
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209487
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
209488
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
209489
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209490
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
209491
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
209492
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209493
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
209494
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
209495
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209496
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
209497
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
209498
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209499
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
209500
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
209501
|
+
[1m[35m (0.1ms)[0m begin transaction
|
209502
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
209503
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209504
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209505
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209506
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
209507
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD10"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209508
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209509
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209510
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-14@example.com"]]
|
209511
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209512
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
209513
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-14@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
209514
|
+
[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
|
209515
|
+
Unpermitted parameters: user_email, device_token
|
209516
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
209517
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1[0m
|
209518
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209519
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
209520
|
+
[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
|
209521
|
+
[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", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209522
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209523
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
|
209524
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
209525
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
209526
|
+
[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
|
209527
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
209528
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209529
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209530
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209531
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
209532
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209533
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
209534
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
209535
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209536
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
209537
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
209538
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209539
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
209540
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
209541
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209542
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
209543
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
209544
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209545
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
209546
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
209547
|
+
[1m[35m (0.1ms)[0m begin transaction
|
209548
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209549
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
|
209550
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209551
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209552
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209553
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209554
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
209555
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-15@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
|
209556
|
+
[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
|
209557
|
+
Unpermitted parameters: user_email, device_token
|
209558
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
|
209559
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1[0m
|
209560
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209561
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
209562
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
209563
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209564
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209565
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
209566
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
209567
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
209568
|
+
[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
|
209569
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
209570
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209571
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209572
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209573
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209574
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209575
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209576
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209577
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209578
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209579
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
209580
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209581
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209582
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209583
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209584
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209585
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209586
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209587
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209588
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-16@example.com"]]
|
209589
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209590
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
209591
|
+
Parameters: {"token"=>"ZXY987", "user_email"=>"person-16@example.com", "device_token"=>{"token"=>"ZXY987"}}
|
209592
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1[0m
|
209593
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
209594
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms)
|
209595
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
209596
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
209597
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209598
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209599
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209600
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209601
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209602
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
|
209603
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 2]]
|
209604
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209605
|
+
[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
|
209606
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'
|
209607
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209608
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209609
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209610
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209611
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209612
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209613
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209614
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209615
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209616
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
209617
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209618
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209619
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209620
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209621
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209622
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209623
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
209624
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209625
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
209626
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209627
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
209628
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209629
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209630
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209631
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
209632
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209633
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209634
|
+
[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
|
209635
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
209636
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209637
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209638
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209639
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209640
|
+
[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", 0]]
|
209641
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209642
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209643
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-19@example.com"]]
|
209644
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209645
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
209646
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD12"}, "user_email"=>"person-19@example.com", "notification"=>{}}
|
209647
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1[0m
|
209648
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD12') LIMIT 1
|
209649
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
209650
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
|
209651
|
+
[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]]
|
209652
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
209653
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
209654
|
+
Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
|
209655
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
209656
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
|
209657
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
209658
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
209659
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209660
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209661
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209662
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209663
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209664
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209665
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209666
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209667
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209668
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209669
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209670
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209671
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209672
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209673
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209674
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209675
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209676
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209677
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-20@example.com"]]
|
209678
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
209679
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
209680
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209681
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209682
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209683
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
209684
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209685
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209686
|
+
[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
|
209687
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
209688
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209689
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209690
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209691
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209692
|
+
[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", 0]]
|
209693
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209694
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
209695
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD13"}, "user_email"=>"person-20@example.com", "notification"=>{}}
|
209696
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
|
209697
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD13') LIMIT 1[0m
|
209698
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
209699
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1[0m
|
209700
|
+
[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]]
|
209701
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
209702
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209703
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notification_statuses" SET "status" = ? WHERE "notifiable_notification_statuses"."id" = 1[0m [["status", -1]]
|
209704
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209705
|
+
[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]]
|
209706
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209707
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
|
209708
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209709
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
209710
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
209711
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
|
209712
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
209713
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
209714
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209715
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209716
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209717
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209718
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209719
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209720
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209721
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209722
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209723
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209724
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209725
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209726
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209727
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209728
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209729
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209730
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209731
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209732
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209733
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209734
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209735
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209736
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209737
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
209738
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209739
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209740
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209741
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209742
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209743
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209744
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209745
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209746
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209747
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209748
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209749
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209750
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209751
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209752
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209753
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
209754
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209755
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209756
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209757
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
209758
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209759
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209760
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209761
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
209762
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209763
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209764
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209765
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209766
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209767
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209768
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209769
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209770
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209771
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209772
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209773
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209774
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209775
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209776
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209777
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
209778
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209779
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209780
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209781
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209782
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209783
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209784
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209785
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209786
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?)[0m [["notification_id", 1]]
|
209787
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209788
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209789
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
|
209790
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ?[0m [["id", 1]]
|
209791
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
|
209792
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209793
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
209794
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209795
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209796
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209797
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209798
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209799
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209800
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209801
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209802
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209803
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209804
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209805
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209806
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209807
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209808
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209809
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
209810
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
209811
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209812
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
209813
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209814
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209815
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209816
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209817
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209818
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
209819
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD14"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209820
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209821
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209822
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209823
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209824
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
209825
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209826
|
+
[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", 0]]
|
209827
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209828
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
209829
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
|
209830
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0[0m [["notification_id", 1]]
|
209831
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209832
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
209833
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
|
209834
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209835
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
209836
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
209837
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
|
209838
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
209839
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209840
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209841
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209842
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209843
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209844
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209845
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209846
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209847
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209848
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209849
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209850
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209851
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209852
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209853
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209854
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209855
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209856
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-22@example.com"]]
|
209857
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209858
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209859
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209860
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209861
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
209862
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1[0m
|
209863
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD15"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209864
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209865
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209866
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209867
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209868
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209869
|
+
[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", 0]]
|
209870
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209871
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
209872
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
209873
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
|
209874
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209875
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
209876
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil]]
|
209877
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
209878
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
209879
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
209880
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
209881
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209882
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209883
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209884
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209885
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209886
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209887
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209888
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209889
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
209890
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209891
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
209892
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
209893
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209894
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
209895
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
209896
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209897
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209898
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-23@example.com"]]
|
209899
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209900
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209901
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209902
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209903
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209904
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1[0m
|
209905
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD16"], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["user_id", 1]]
|
209906
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209907
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209908
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00], ["params", nil], ["updated_at", Mon, 17 Mar 2014 00:59:21 UTC +00:00]]
|
209909
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209910
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
209911
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
209912
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209913
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
209914
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
209915
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209916
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
209917
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
209918
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209919
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
209920
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
209921
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209922
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
209923
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
209924
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209925
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
209926
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|