notifiable-rails 0.15.1 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/notifiable/device_tokens_controller.rb +11 -11
- data/lib/notifiable/version.rb +1 -1
- data/spec/controllers/device_tokens_controller_spec.rb +17 -9
- data/spec/spec_helper.rb +1 -0
- data/spec/support/request_helpers.rb +7 -0
- data/spec/test_app/log/test.log +3524 -0
- metadata +3 -1
data/spec/test_app/log/test.log
CHANGED
@@ -238497,3 +238497,3527 @@ Completed 200 OK in 32ms (ActiveRecord: 0.5ms)
|
|
238497
238497
|
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238498
238498
|
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238499
238499
|
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
238500
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
238501
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238502
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
238503
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
238504
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238505
|
+
[1m[35mSQL (26.9ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238506
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238507
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
238508
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-1@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
238509
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
238510
|
+
Unpermitted parameters: user_email, device_token
|
238511
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1[0m
|
238512
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
|
238513
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238514
|
+
[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]]
|
238515
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
238516
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
238517
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238518
|
+
Completed 200 OK in 28ms (Views: 0.1ms | ActiveRecord: 1.0ms)
|
238519
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
238520
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
238521
|
+
[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
|
238522
|
+
[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]]
|
238523
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
238524
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238525
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238526
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238527
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238528
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238529
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238530
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238531
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238532
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238533
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238534
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238535
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
238536
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238537
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238538
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
238539
|
+
[1m[35m (0.0ms)[0m begin transaction
|
238540
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238541
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
238542
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238543
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238544
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238545
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238546
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238547
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
|
238548
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
238549
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238550
|
+
[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
|
238551
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
238552
|
+
Parameters: {"id"=>"1", "user_email"=>"person-2@example.com", "device_token"=>{"id"=>"1"}}
|
238553
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
238554
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
238555
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
238556
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1[0m
|
238557
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238558
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ?[0m [["id", 1]]
|
238559
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238560
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
|
238561
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
238562
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
238563
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238564
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238565
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238566
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238567
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238568
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238569
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238570
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238571
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238572
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238573
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238574
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
238575
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238576
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238577
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
238578
|
+
[1m[35m (0.0ms)[0m begin transaction
|
238579
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238580
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
|
238581
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238582
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238583
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238584
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238585
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238586
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
|
238587
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
238588
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238589
|
+
[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
|
238590
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
238591
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
238592
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
238593
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
238594
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
238595
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
238596
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
238597
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms)
|
238598
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'
|
238599
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
238600
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238601
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238602
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238603
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238604
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238605
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238606
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238607
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238608
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
238609
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238610
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238611
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238612
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238613
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238614
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238615
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
238616
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238617
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
238618
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238619
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238620
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238621
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238622
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238623
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
238624
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
238625
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238626
|
+
[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
|
238627
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238628
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238629
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238630
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
238631
|
+
Parameters: {"token"=>"ABCD3", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-4@example.com", "device_token"=>{"token"=>"ABCD3", "provider"=>"mock", "app_id"=>"2"}}
|
238632
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
|
238633
|
+
Unpermitted parameters: user_email, device_token
|
238634
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1[0m
|
238635
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
|
238636
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238637
|
+
[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]]
|
238638
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD3' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
238639
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238640
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238641
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
238642
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
238643
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
238644
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
238645
|
+
[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", 2]]
|
238646
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
238647
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238648
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238649
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238650
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238651
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238652
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238653
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238654
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238655
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238656
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238657
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238658
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
238659
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238660
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238661
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
238662
|
+
[1m[35m (0.1ms)[0m begin transaction
|
238663
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
238664
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
238665
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238666
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
238667
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-5@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
238668
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
238669
|
+
Unpermitted parameters: user_email, device_token
|
238670
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1[0m
|
238671
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
|
238672
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238673
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
238674
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
238675
|
+
Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
238676
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
238677
|
+
[1m[36m (0.4ms)[0m [1mDELETE FROM "users";[0m
|
238678
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238679
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238680
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
238681
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238682
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238683
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238684
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238685
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238686
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
238687
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238688
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238689
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238690
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238691
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238692
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
238693
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
238694
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
238695
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238696
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238697
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
238698
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
238699
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
238700
|
+
Unpermitted parameters: device_token
|
238701
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
238702
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238703
|
+
[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]]
|
238704
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
238705
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238706
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238707
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.9ms)
|
238708
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
238709
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238710
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238711
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238712
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238713
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238714
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238715
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238716
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238717
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238718
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238719
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238720
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
238721
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238722
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238723
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
238724
|
+
[1m[35m (0.0ms)[0m begin transaction
|
238725
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238726
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
238727
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238728
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238729
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238730
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238731
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238732
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
238733
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
238734
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238735
|
+
[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
|
238736
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
238737
|
+
Parameters: {"token"=>"ABCD4", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD4", "provider"=>"mpns"}}
|
238738
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
238739
|
+
Unpermitted parameters: device_token
|
238740
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
238741
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238742
|
+
[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]]
|
238743
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
238744
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["provider", "mpns"], ["user_id", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238745
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238746
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)
|
238747
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
238748
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
238749
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
238750
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238751
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238752
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238753
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238754
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238755
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238756
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238757
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238758
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
238759
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238760
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238761
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238762
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238763
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238764
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238765
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
238766
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238767
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
238768
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238769
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238770
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238771
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238772
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238773
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
238774
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
238775
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238776
|
+
[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
|
238777
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238778
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
238779
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238780
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
238781
|
+
Parameters: {"id"=>"1", "user_email"=>"person-8@example.com", "device_token"=>{"id"=>"1"}}
|
238782
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
238783
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
238784
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
238785
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1[0m
|
238786
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
238787
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
238788
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
|
238789
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
238790
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238791
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238792
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
238793
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238794
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238795
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238796
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238797
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238798
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
238799
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238800
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238801
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238802
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238803
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238804
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
238805
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
238806
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238807
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
238808
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238809
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238810
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238811
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238812
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238813
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
238814
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
238815
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238816
|
+
[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
|
238817
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
238818
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-9@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
238819
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
238820
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
238821
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
238822
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
|
238823
|
+
Unpermitted parameters: user_email, device_token
|
238824
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1[0m
|
238825
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
|
238826
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238827
|
+
[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]]
|
238828
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
238829
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238830
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238831
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
238832
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
238833
|
+
[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
|
238834
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
238835
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238836
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
238837
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
238838
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238839
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
238840
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
238841
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238842
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
238843
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
238844
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238845
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
238846
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
238847
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238848
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
238849
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
238850
|
+
[1m[35m (0.0ms)[0m begin transaction
|
238851
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238852
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
|
238853
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238854
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
238855
|
+
Parameters: {"id"=>"59", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"59"}}
|
238856
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
|
238857
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
238858
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238859
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
|
238860
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238861
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238862
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238863
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238864
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238865
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
238866
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 2]]
|
238867
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238868
|
+
[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
|
238869
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
|
238870
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
238871
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238872
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238873
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238874
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238875
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238876
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238877
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238878
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238879
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
238880
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238881
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238882
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238883
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238884
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238885
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238886
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
238887
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238888
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238889
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238890
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238891
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238892
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238893
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
238894
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
238895
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238896
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238897
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238898
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238899
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238900
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238901
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238902
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238903
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
238904
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238905
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238906
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238907
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238908
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238909
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238910
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
238911
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238912
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
238913
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238914
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238915
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238916
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238917
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238918
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
238919
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD8"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
238920
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238921
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238922
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238923
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238924
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238925
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
238926
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238927
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
238928
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
238929
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
238930
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238931
|
+
[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]]
|
238932
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil]]
|
238933
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238934
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
238935
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
238936
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
238937
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238938
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238939
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238940
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238941
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238942
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238943
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238944
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238945
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
238946
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238947
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238948
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238949
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238950
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238951
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238952
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
238953
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238954
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
238955
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238956
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
238957
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238958
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238959
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238960
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
238961
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD9"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
238962
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238963
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
238964
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
238965
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238966
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
238967
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238968
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
238969
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
238970
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
238971
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
238972
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
238973
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
238974
|
+
[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]]
|
238975
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil]]
|
238976
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
238977
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
238978
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
238979
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
238980
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
238981
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238982
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
238983
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
238984
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238985
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
238986
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
238987
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238988
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
238989
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
238990
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
238991
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
238992
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
238993
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
238994
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
238995
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
238996
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
238997
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
238998
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-14@example.com"]]
|
238999
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239000
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
239001
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239002
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239003
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239004
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
239005
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD10"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
239006
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239007
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239008
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239009
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239010
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
239011
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239012
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239013
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239014
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239015
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239016
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239017
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239018
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239019
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239020
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239021
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239022
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239023
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
239024
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239025
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239026
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239027
|
+
[1m[35m (0.1ms)[0m begin transaction
|
239028
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239029
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
|
239030
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239031
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239032
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239033
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239034
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239035
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
|
239036
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
239037
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239038
|
+
[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
|
239039
|
+
[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]]
|
239040
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
239041
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239042
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239043
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239044
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
239045
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239046
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239047
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
239048
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239049
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
239050
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD11"}, "user_email"=>"person-16@example.com", "notification"=>{}}
|
239051
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
|
239052
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD11') LIMIT 1[0m
|
239053
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
239054
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1[0m
|
239055
|
+
[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]]
|
239056
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
239057
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
239058
|
+
Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
|
239059
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
239060
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
239061
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
239062
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
239063
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
239064
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239065
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239066
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239067
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239068
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239069
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239070
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239071
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239072
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239073
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239074
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239075
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
239076
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239077
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239078
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
239079
|
+
[1m[35m (0.1ms)[0m begin transaction
|
239080
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
239081
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
239082
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239083
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239084
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239085
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239086
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239087
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
239088
|
+
[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", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
239089
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239090
|
+
[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
|
239091
|
+
[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]]
|
239092
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
239093
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239094
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239095
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239096
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
239097
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239098
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
239099
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD12"}, "user_email"=>"person-17@example.com", "notification"=>{}}
|
239100
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1[0m
|
239101
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD12') LIMIT 1
|
239102
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
239103
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
|
239104
|
+
[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]]
|
239105
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
239106
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239107
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
|
239108
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239109
|
+
[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]]
|
239110
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239111
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil]]
|
239112
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239113
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
239114
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
239115
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
239116
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
239117
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
239118
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239119
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239120
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239121
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239122
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239123
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239124
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239125
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239126
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239127
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239128
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239129
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239130
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
239131
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239132
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239133
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239134
|
+
[1m[35m (0.1ms)[0m begin transaction
|
239135
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239136
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239137
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239138
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
239139
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239140
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239141
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239142
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239143
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239144
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239145
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239146
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
|
239147
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239148
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239149
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239150
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239151
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239152
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
|
239153
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
239154
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239155
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
239156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239157
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239158
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239159
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239160
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239161
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239162
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239163
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-19@example.com"]]
|
239164
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239165
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239166
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239167
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239168
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239169
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
239170
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 2]]
|
239171
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239172
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
239173
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239174
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
239175
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239176
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239177
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
239178
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239179
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)[0m
|
239180
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
239181
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
239182
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239183
|
+
[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", 2]]
|
239184
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil]]
|
239185
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239186
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
|
239187
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 2]]
|
239188
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239189
|
+
[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", 4]]
|
239190
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil]]
|
239191
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239192
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
239193
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses"[0m
|
239194
|
+
[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]]
|
239195
|
+
[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]]
|
239196
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
239197
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 2]]
|
239198
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
|
239199
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
239200
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
239201
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239202
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239203
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239204
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239205
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239206
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239207
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239208
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239209
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239210
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239211
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239212
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
239213
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239214
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239215
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239216
|
+
[1m[35m (0.0ms)[0m begin transaction
|
239217
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239218
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239219
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239220
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
239221
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239222
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239223
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239224
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239225
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239226
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239227
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239228
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
|
239229
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239230
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239231
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239232
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239233
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239234
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
|
239235
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
239236
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239237
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
239238
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239239
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
239240
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239241
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239242
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239243
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239244
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239245
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1[0m
|
239246
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 2]]
|
239247
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239248
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
239249
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239250
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
239251
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239252
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239253
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
239254
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239255
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)[0m
|
239256
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
239257
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
239258
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239259
|
+
[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", 2]]
|
239260
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", nil]]
|
239261
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239262
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
239263
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses"[0m
|
239264
|
+
[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]]
|
239265
|
+
[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]]
|
239266
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
239267
|
+
[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]]
|
239268
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
|
239269
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
239270
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
239271
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239272
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239273
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239274
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239275
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239276
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239277
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239278
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239279
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239280
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239281
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239282
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
239283
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239284
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239285
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239286
|
+
[1m[35m (0.1ms)[0m begin transaction
|
239287
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239288
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239289
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239290
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239291
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-22@example.com"]]
|
239292
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239293
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239294
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239295
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239296
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239297
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1[0m
|
239298
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :sms], ["token", "ABCD17"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
239299
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239300
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239301
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239302
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239303
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239304
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239305
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239306
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
239307
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
239308
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
239309
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239310
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239311
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239312
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239313
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239314
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239315
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239316
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239317
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239318
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239319
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239320
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
239321
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239322
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239323
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239324
|
+
[1m[35m (0.0ms)[0m begin transaction
|
239325
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239326
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239327
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239328
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
239329
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL[0m
|
239330
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
|
239331
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
239332
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239333
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239334
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239335
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239336
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239337
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239338
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
239339
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239340
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239341
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239342
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239343
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239344
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
239345
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239346
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239347
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
239348
|
+
[1m[35m (0.1ms)[0m begin transaction
|
239349
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239350
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239351
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239352
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239353
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239354
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239355
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239356
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
|
239357
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239358
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239359
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239360
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239361
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239362
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
|
239363
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["user_id", 1]]
|
239364
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239365
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
239366
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
239367
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239368
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["device_token_id", 1], ["status", 200]]
|
239369
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239370
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
|
239371
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
239372
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
239373
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239374
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239375
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239376
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239377
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239378
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239379
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239380
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239381
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239382
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239383
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239384
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
239385
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239386
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239387
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239388
|
+
[1m[35m (0.0ms)[0m begin transaction
|
239389
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239390
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239391
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239393
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239394
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239395
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
239396
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239397
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239398
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239399
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239400
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239401
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239402
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
239403
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239404
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239405
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239406
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239407
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239408
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
239409
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239410
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239411
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
239412
|
+
[1m[35m (0.1ms)[0m begin transaction
|
239413
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239414
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239415
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239416
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239417
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239418
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239419
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
239420
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239421
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239422
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239423
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239424
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239425
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239426
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
239427
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239428
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239429
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239430
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239431
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239432
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
239433
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239434
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239435
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239436
|
+
[1m[35m (0.0ms)[0m begin transaction
|
239437
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239438
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239439
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239440
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239441
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00]]
|
239442
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239443
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239444
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Sat, 19 Apr 2014 14:11:53 UTC +00:00], ["notification_id", 1]]
|
239445
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239446
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239447
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
239448
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
|
239449
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
239450
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239451
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
239452
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239453
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239454
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239455
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239456
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239457
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239458
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
239459
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239460
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239461
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239462
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239463
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239464
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
239465
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239466
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239467
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
239468
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
239469
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239470
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
239471
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239472
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239473
|
+
[1m[35mSQL (3.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00]]
|
239474
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239475
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239476
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
239477
|
+
[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", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["user_id", 1]]
|
239478
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239479
|
+
[1m[35mNotifiable::DeviceToken Load (0.2ms)[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
|
239480
|
+
[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]]
|
239481
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239482
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00]]
|
239483
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239484
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239485
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
239486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239487
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
239488
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD1"}, "user_email"=>"person-1@example.com", "notification"=>{}}
|
239489
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
|
239490
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD1') LIMIT 1[0m
|
239491
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
239492
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1[0m
|
239493
|
+
[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]]
|
239494
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
239495
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239496
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
239497
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239498
|
+
[1m[36mNotifiable::Notification Load (0.3ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
239499
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239500
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Sat, 19 Apr 2014 14:12:05 UTC +00:00], ["params", nil]]
|
239501
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239502
|
+
Completed 200 OK in 14ms (ActiveRecord: 1.7ms)
|
239503
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
239504
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
239505
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
239506
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
239507
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
239508
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239509
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
239510
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
239511
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239512
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
239513
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
239514
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239515
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
239516
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
239517
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239518
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
239519
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
239520
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239521
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
239522
|
+
[1m[35m (6.5ms)[0m rollback transaction
|
239523
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
239524
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239525
|
+
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:12:10 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:12:10 UTC +00:00]]
|
239526
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239527
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
239528
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
239529
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239530
|
+
Unpermitted parameters: device_token
|
239531
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
239532
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239533
|
+
[1m[35mNotifiable::App Load (0.2ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
239534
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239535
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:12:10 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:12:10 UTC +00:00]]
|
239536
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239537
|
+
Completed 200 OK in 47ms (Views: 0.2ms | ActiveRecord: 2.2ms)
|
239538
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239539
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239540
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239541
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239542
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239543
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239544
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239545
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239546
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239547
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239548
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239549
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239550
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
239551
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239552
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239553
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239554
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
239555
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239556
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:12:19 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:12:19 UTC +00:00]]
|
239557
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239558
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
239559
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
239560
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239561
|
+
Unpermitted parameters: device_token
|
239562
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
239563
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239564
|
+
[1m[35mNotifiable::App Load (0.2ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
239565
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239566
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:12:19 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:12:19 UTC +00:00]]
|
239567
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239568
|
+
Completed 200 OK in 47ms (Views: 0.2ms | ActiveRecord: 2.2ms)
|
239569
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239570
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239571
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239572
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239573
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239574
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239575
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239576
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239577
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239578
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239579
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239580
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239581
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
239582
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239583
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239584
|
+
[1m[36m (6.5ms)[0m [1mrollback transaction[0m
|
239585
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
239586
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239587
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:12:35 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:12:35 UTC +00:00]]
|
239588
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239589
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
239590
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
239591
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239592
|
+
Unpermitted parameters: device_token
|
239593
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
239594
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239595
|
+
[1m[35mNotifiable::App Load (0.2ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
239596
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239597
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:12:35 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:12:35 UTC +00:00]]
|
239598
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239599
|
+
Completed 200 OK in 51ms (Views: 0.1ms | ActiveRecord: 2.1ms)
|
239600
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
239601
|
+
[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
|
239602
|
+
[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]]
|
239603
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
239604
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239605
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239606
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239607
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239608
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239609
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239610
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239611
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239612
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239613
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239614
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239615
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239616
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
239617
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239618
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239619
|
+
[1m[36m (6.7ms)[0m [1mrollback transaction[0m
|
239620
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
239621
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239622
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:13:14 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:13:14 UTC +00:00]]
|
239623
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239624
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
239625
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
239626
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239627
|
+
Unpermitted parameters: device_token
|
239628
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
239629
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239630
|
+
[1m[35mNotifiable::App Load (0.2ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
239631
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239632
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:13:14 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:13:14 UTC +00:00]]
|
239633
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239634
|
+
Completed 200 OK in 51ms (Views: 0.1ms | ActiveRecord: 2.1ms)
|
239635
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
239636
|
+
[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
|
239637
|
+
[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]]
|
239638
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
239639
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239640
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239641
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239642
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239643
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239644
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239645
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239646
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239647
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239648
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239649
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239650
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239651
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
239652
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239653
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239654
|
+
[1m[36m (2.9ms)[0m [1mrollback transaction[0m
|
239655
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
239656
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239657
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:42 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:42 UTC +00:00]]
|
239658
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239659
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
239660
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
239661
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239662
|
+
Unpermitted parameters: device_token
|
239663
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
239664
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239665
|
+
[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]]
|
239666
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239667
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:14:42 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:14:42 UTC +00:00]]
|
239668
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239669
|
+
Completed 200 OK in 47ms (Views: 0.2ms | ActiveRecord: 2.0ms)
|
239670
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
239671
|
+
[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
|
239672
|
+
[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]]
|
239673
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
239674
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239675
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239676
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239677
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239678
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239679
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239680
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239681
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239682
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239683
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239684
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239685
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239686
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
239687
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239688
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239689
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239690
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
239691
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239692
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
239693
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239694
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239695
|
+
[1m[35mSQL (3.0ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239696
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239697
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
239698
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
239699
|
+
[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", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
|
239700
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239701
|
+
[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
|
239702
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
239703
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-1@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
239704
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
239705
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
239706
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
239707
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
|
239708
|
+
Unpermitted parameters: id, user_email, device_token
|
239709
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1[0m
|
239710
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
|
239711
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239712
|
+
[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]]
|
239713
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
239714
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239715
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239716
|
+
Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 0.8ms)
|
239717
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
239718
|
+
[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
|
239719
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
239720
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239721
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239722
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239723
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239724
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239725
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239726
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239727
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239728
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239729
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239730
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239731
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
239732
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239733
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239734
|
+
[1m[36m (6.6ms)[0m [1mrollback transaction[0m
|
239735
|
+
[1m[35m (0.1ms)[0m begin transaction
|
239736
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
239737
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
239738
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239739
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
239740
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-2@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
239741
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
239742
|
+
Unpermitted parameters: user_email, device_token
|
239743
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1[0m
|
239744
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
|
239745
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239746
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
239747
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
239748
|
+
Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.4ms)
|
239749
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
239750
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM "users";[0m
|
239751
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239752
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
239753
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
239754
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239755
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
239756
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
239757
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239758
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
239759
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
239760
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239761
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
239762
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
239763
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239764
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
239765
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
239766
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
239767
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239768
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
239769
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239770
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239771
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239772
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239773
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
239774
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-3@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
239775
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
239776
|
+
Unpermitted parameters: user_email, device_token
|
239777
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1[0m
|
239778
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
|
239779
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239780
|
+
[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]]
|
239781
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
239782
|
+
[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", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
|
239783
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239784
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
239785
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
239786
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
239787
|
+
[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
|
239788
|
+
[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]]
|
239789
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239790
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239791
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239792
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239793
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239794
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239795
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239796
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239797
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239798
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239799
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239800
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239801
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
239802
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239803
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239804
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239805
|
+
[1m[35m (0.0ms)[0m begin transaction
|
239806
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239807
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239808
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239809
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
239810
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
239811
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
239812
|
+
Unpermitted parameters: device_token
|
239813
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
239814
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239815
|
+
[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]]
|
239816
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
239817
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239818
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239819
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.9ms)
|
239820
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
239821
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
239822
|
+
[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]]
|
239823
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
239824
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
239825
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239826
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
239827
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
239828
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239829
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
239830
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
239831
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239832
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
239833
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
239834
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239835
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
239836
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
239837
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239838
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
239839
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
239840
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
239841
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239842
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
239843
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239844
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239845
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239846
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239847
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239848
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
239849
|
+
[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", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
|
239850
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239851
|
+
[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
|
239852
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
239853
|
+
Parameters: {"token"=>"ABCD2", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD2", "provider"=>"mpns"}}
|
239854
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
239855
|
+
Unpermitted parameters: device_token
|
239856
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
239857
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
239858
|
+
[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]]
|
239859
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD2' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
239860
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239861
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239862
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
239863
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
239864
|
+
[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
|
239865
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
239866
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239867
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
239868
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
239869
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239870
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
239871
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
239872
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239873
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
239874
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
239875
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239876
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
239877
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
239878
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239879
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
239880
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
239881
|
+
[1m[35m (0.0ms)[0m begin transaction
|
239882
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239883
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
239884
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239885
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239886
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239887
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239888
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239889
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
|
239890
|
+
[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", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
|
239891
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239892
|
+
[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
|
239893
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239894
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239895
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239896
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
239897
|
+
Parameters: {"token"=>"ABCD3", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-5@example.com", "device_token"=>{"token"=>"ABCD3", "provider"=>"mock", "app_id"=>"2"}}
|
239898
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
239899
|
+
Unpermitted parameters: user_email, device_token
|
239900
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
|
239901
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1[0m
|
239902
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239903
|
+
[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", 2]]
|
239904
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD3' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
239905
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["app_id", 2], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239906
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239907
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
239908
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
239909
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
239910
|
+
[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
|
239911
|
+
[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]]
|
239912
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
239913
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239914
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
239915
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
239916
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239917
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
239918
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
239919
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239920
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
239921
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
239922
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239923
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
239924
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
239925
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239926
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
239927
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
239928
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
239929
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239930
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-6@example.com"]]
|
239931
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239932
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239933
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239934
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239935
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239936
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
239937
|
+
[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", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
|
239938
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239939
|
+
[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
|
239940
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239941
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
|
239942
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239943
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
239944
|
+
Parameters: {"id"=>"1", "user_email"=>"person-7@example.com", "device_token"=>{"id"=>"1"}}
|
239945
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
239946
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
239947
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
239948
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1[0m
|
239949
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
239950
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
239951
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
|
239952
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
239953
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239954
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
239955
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
239956
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239957
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
239958
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
239959
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239960
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
239961
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
239962
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239963
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
239964
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
239965
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239966
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
239967
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
239968
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
239969
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239970
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-8@example.com"]]
|
239971
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
239972
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239973
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
239974
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239975
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
239976
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
239977
|
+
[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", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
|
239978
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239979
|
+
[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
|
239980
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
239981
|
+
Parameters: {"id"=>"1", "user_email"=>"person-8@example.com", "device_token"=>{"id"=>"1"}}
|
239982
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
239983
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
239984
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
239985
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
|
239986
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
239987
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
239988
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239989
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
|
239990
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
239991
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
239992
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239993
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
239994
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
239995
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
239996
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
239997
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
239998
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
239999
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240000
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
240001
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240002
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240003
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240004
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240005
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240006
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
240007
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
240008
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240009
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
240010
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240011
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240012
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
240013
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240014
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240015
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
240016
|
+
[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", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 1]]
|
240017
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240018
|
+
[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
|
240019
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
240020
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
240021
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
240022
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
240023
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
240024
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
240025
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
240026
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms)
|
240027
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'[0m
|
240028
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
240029
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240030
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240031
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240032
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240033
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240034
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
240035
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240036
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240037
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240038
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240039
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240040
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
240041
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240042
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240043
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
240044
|
+
[1m[35m (0.1ms)[0m begin transaction
|
240045
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
240046
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
|
240047
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240048
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
240049
|
+
Parameters: {"id"=>"59", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"59"}}
|
240050
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
|
240051
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
240052
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
240053
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
|
240054
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240055
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240056
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00]]
|
240057
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240058
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240059
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
240060
|
+
[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", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 19 Apr 2014 14:14:46 UTC +00:00], ["user_id", 2]]
|
240061
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240062
|
+
[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
|
240063
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
|
240064
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
240065
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240066
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240067
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
240068
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240069
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240070
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240071
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240072
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240073
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
240074
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240075
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240076
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240077
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240078
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240079
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
240080
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
240081
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240082
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:53 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:53 UTC +00:00]]
|
240083
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240084
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240085
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:53 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:53 UTC +00:00]]
|
240086
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240087
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
240088
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
240089
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240090
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240091
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240092
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240093
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240094
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240095
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240096
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240097
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
240098
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240099
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240100
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240101
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240102
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240103
|
+
[1m[35m (6.6ms)[0m rollback transaction
|
240104
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
240105
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
240106
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
240107
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240109
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240110
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240111
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
240112
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-1@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
240113
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
240114
|
+
Unpermitted parameters: user_email, device_token
|
240115
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1[0m
|
240116
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
|
240117
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240118
|
+
[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]]
|
240119
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
240120
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240121
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240122
|
+
Completed 200 OK in 18ms (Views: 0.1ms | ActiveRecord: 0.9ms)
|
240123
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
240124
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
240125
|
+
[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
|
240126
|
+
[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]]
|
240127
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
240128
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240129
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240130
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240131
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240132
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240133
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
240134
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240135
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240136
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240137
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240138
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240139
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
240140
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240141
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240142
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
240143
|
+
[1m[35m (0.1ms)[0m begin transaction
|
240144
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240145
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
240146
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240147
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240148
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240149
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240150
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240151
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
|
240152
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240153
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240154
|
+
[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
|
240155
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240156
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240157
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240158
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
240159
|
+
Parameters: {"token"=>"ABCD1", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-2@example.com", "device_token"=>{"token"=>"ABCD1", "provider"=>"mock", "app_id"=>"2"}}
|
240160
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
240161
|
+
Unpermitted parameters: user_email, device_token
|
240162
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
|
240163
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1[0m
|
240164
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240165
|
+
[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", 2]]
|
240166
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD1' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
240167
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["app_id", 2], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240168
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
240169
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
240170
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
240171
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
240172
|
+
[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
|
240173
|
+
[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]]
|
240174
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
240175
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240176
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240177
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240178
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240179
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240180
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240181
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240182
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240183
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
240184
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240185
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240186
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240187
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240188
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240189
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
240190
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
240191
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
240192
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240193
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240194
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
240195
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
240196
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
240197
|
+
Unpermitted parameters: device_token
|
240198
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
240199
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240200
|
+
[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]]
|
240201
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
240202
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240203
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240204
|
+
Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.9ms)
|
240205
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
240206
|
+
[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
|
240207
|
+
[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]]
|
240208
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
240209
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
240210
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240211
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240212
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240213
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240214
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240215
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
240216
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240217
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240218
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240219
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240220
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240221
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
240222
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240223
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240224
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
240225
|
+
[1m[35m (0.1ms)[0m begin transaction
|
240226
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240227
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
|
240228
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240229
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
240230
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-3@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
240231
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
240232
|
+
Unpermitted parameters: user_email, device_token
|
240233
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1[0m
|
240234
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
|
240235
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240236
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
240237
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
240238
|
+
Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
240239
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
240240
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM "users";[0m
|
240241
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240242
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240243
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
240244
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240245
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240246
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240247
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240248
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240249
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
240250
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240251
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240252
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240253
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240254
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240255
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
240256
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
240257
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240258
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
240259
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240260
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
240261
|
+
Parameters: {"id"=>"59", "user_email"=>"person-4@example.com", "device_token"=>{"id"=>"59"}}
|
240262
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "59"]]
|
240263
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
240264
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240265
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-5@example.com"]]
|
240266
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
240267
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
240268
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240269
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240270
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240271
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
240272
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 2]]
|
240273
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240274
|
+
[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
|
240275
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'[0m
|
240276
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
240277
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240278
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240279
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240280
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240281
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240282
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
240283
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240284
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240285
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240286
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240287
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240288
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
240289
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240290
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240291
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
240292
|
+
[1m[35m (0.1ms)[0m begin transaction
|
240293
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240294
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
240295
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240296
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240297
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240298
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240299
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240300
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
|
240301
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240302
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240303
|
+
[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
|
240304
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
240305
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
240306
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
240307
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
240308
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
240309
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
240310
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
240311
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
240312
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
|
240313
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
240314
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240315
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240316
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240317
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240318
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240319
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240320
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240321
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240322
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
240323
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240324
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240325
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240326
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240327
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240328
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
240329
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
240330
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240331
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
240332
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240333
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240334
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240335
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240336
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240337
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
240338
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240339
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240340
|
+
[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
|
240341
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240342
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
240343
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240344
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
240345
|
+
Parameters: {"id"=>"1", "user_email"=>"person-8@example.com", "device_token"=>{"id"=>"1"}}
|
240346
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
240347
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
240348
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
240349
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1[0m
|
240350
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
240351
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
240352
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
|
240353
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
240354
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240355
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240356
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240357
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240358
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240359
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240360
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240361
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240362
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
240363
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240364
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240365
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240366
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240367
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240368
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
240369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
240370
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240371
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
240372
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240373
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240374
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240375
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240376
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240377
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
240378
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240379
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240380
|
+
[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
|
240381
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
240382
|
+
Parameters: {"token"=>"ABCD5", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD5", "provider"=>"mpns"}}
|
240383
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
240384
|
+
Unpermitted parameters: device_token
|
240385
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
240386
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240387
|
+
[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]]
|
240388
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD5' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
240389
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240390
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240391
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)
|
240392
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
240393
|
+
[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
|
240394
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
240395
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240396
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240397
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240398
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240399
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240400
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
240401
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240402
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240403
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240404
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240405
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240406
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
240407
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240408
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240409
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
240410
|
+
[1m[35m (0.0ms)[0m begin transaction
|
240411
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240412
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
|
240413
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240414
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240415
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240416
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240417
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240418
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
|
240419
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240420
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240421
|
+
[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
|
240422
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
240423
|
+
Parameters: {"id"=>"1", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"1"}}
|
240424
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
240425
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
240426
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
240427
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
240428
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240429
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ?[0m [["id", 1]]
|
240430
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240431
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
|
240432
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
240433
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
240434
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240435
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240436
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240437
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240438
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240439
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
240440
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240441
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240442
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240443
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240444
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240445
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
240446
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240447
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240448
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
240449
|
+
[1m[35m (0.0ms)[0m begin transaction
|
240450
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240451
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
|
240452
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240453
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240454
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240455
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240456
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240457
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
240458
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240459
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240460
|
+
[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
|
240461
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
240462
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
240463
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
240464
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
240465
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
240466
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
240467
|
+
Unpermitted parameters: user_email, device_token
|
240468
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
|
240469
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
240470
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240471
|
+
[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]]
|
240472
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
240473
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["token", "DEF456"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240474
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240475
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
240476
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
240477
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
240478
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
240479
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240480
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240481
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240482
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240483
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240484
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240485
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240486
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240487
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
240488
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240489
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240490
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240491
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240492
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240493
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
240494
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
240495
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240496
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
240497
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240498
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240499
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240500
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240501
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240502
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
240503
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240504
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240505
|
+
[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
|
240506
|
+
[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]]
|
240507
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240508
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240509
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240510
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
240511
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
240512
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240513
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240514
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
240515
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240516
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
240517
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD8"}, "user_email"=>"person-13@example.com", "notification"=>{}}
|
240518
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1[0m
|
240519
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD8') LIMIT 1
|
240520
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
240521
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
|
240522
|
+
[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]]
|
240523
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
240524
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
240525
|
+
Completed 406 Not Acceptable in 4ms (ActiveRecord: 0.4ms)
|
240526
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
240527
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
240528
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
240529
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
240530
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
240531
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240532
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240533
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240534
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240535
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240536
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240537
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240538
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240539
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
240540
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240541
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240542
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240543
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240544
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240545
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
240546
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
240547
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240548
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-14@example.com"]]
|
240549
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240550
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240551
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240552
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240553
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240554
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
240555
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240556
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240557
|
+
[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
|
240558
|
+
[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]]
|
240559
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240560
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240561
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240562
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240563
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
240564
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240565
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
240566
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD9"}, "user_email"=>"person-14@example.com", "notification"=>{}}
|
240567
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
240568
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD9') LIMIT 1[0m
|
240569
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
240570
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1[0m
|
240571
|
+
[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]]
|
240572
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
240573
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240574
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
240575
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240576
|
+
[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]]
|
240577
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240578
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil]]
|
240579
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240580
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
240581
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
240582
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
240583
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
240584
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
240585
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
240586
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240587
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240588
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240589
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240590
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240591
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240592
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240593
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240594
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
240595
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240596
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240597
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240598
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240599
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240600
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
240601
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
240602
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240603
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240604
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240605
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
240606
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240607
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240608
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
240609
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240610
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240611
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240612
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240613
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
240614
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240615
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240616
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240617
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240619
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
240620
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240621
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240622
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
240623
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240624
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
240625
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240626
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240627
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240628
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240629
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240630
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
|
240631
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 2]]
|
240632
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240633
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
240634
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240635
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
240636
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
240637
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240638
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
240639
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240640
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
|
240641
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
240642
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
240643
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240644
|
+
[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]]
|
240645
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil]]
|
240646
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240647
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
240648
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
240649
|
+
[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]]
|
240650
|
+
[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]]
|
240651
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
240652
|
+
[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]]
|
240653
|
+
[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]]
|
240654
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
240655
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
240656
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240657
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240658
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240659
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240660
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240661
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240662
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240663
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240664
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
240665
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240666
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240667
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240668
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240669
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240670
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
240671
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
240672
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
240673
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240674
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
240675
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240676
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
240677
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240678
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
240679
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240680
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
240681
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240682
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
240683
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :sms], ["token", "ABCD12"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240684
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
240685
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
240686
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240687
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240688
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240689
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240690
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240691
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
240692
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
240693
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
240694
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240695
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240696
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240697
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240698
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240699
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240700
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240701
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240702
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
240703
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240704
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240705
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240706
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240707
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240708
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
240709
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
240710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240711
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240712
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240713
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
240714
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240715
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240716
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240717
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240718
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240719
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240720
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240721
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
240722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240723
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240724
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240725
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240726
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
240727
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
240728
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240729
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240730
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
240731
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240732
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240733
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240734
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240735
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240736
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240737
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240738
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
240739
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240740
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
240741
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240742
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240743
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240744
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
|
240745
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 2]]
|
240746
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240747
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
240748
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240749
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
240750
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240751
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240752
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
240753
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240754
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
|
240755
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
240756
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
240757
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240758
|
+
[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]]
|
240759
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil]]
|
240760
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240761
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 2]]
|
240762
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
|
240763
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240764
|
+
[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]]
|
240765
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil]]
|
240766
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240767
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
240768
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
240769
|
+
[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]]
|
240770
|
+
[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]]
|
240771
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
240772
|
+
[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]]
|
240773
|
+
[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]]
|
240774
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
240775
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
240776
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240777
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240778
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240779
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240780
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240781
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240782
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240783
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240784
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
240785
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240786
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240787
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240788
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240789
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240790
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
240791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
240792
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
240793
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-20@example.com"]]
|
240794
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240795
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240796
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240797
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240798
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
240799
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1[0m
|
240800
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD15"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240801
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240802
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240803
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240804
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240805
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
240806
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240807
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
240808
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240809
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
240810
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
240811
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
240812
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240813
|
+
[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]]
|
240814
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil]]
|
240815
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240816
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
240817
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
240818
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
240819
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
240820
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240821
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
240822
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
240823
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240824
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
240825
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
240826
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240827
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
240828
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
240829
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240830
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
240831
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
240832
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240833
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
240834
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
240835
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
240836
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240837
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
240838
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240839
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240840
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240841
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240842
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240843
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1[0m
|
240844
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD16"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240845
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240846
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240847
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240848
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240849
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
240850
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
240851
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240852
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240853
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240854
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240855
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240856
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
240857
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240858
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240859
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240860
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240861
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240862
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
240863
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240864
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240865
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
240866
|
+
[1m[35m (0.0ms)[0m begin transaction
|
240867
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240868
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
|
240869
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240870
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240871
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240872
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240873
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240874
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
|
240875
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD17"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240876
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240877
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240878
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240879
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240880
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240881
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
240882
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240883
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
240884
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
240885
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
240886
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240887
|
+
[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]]
|
240888
|
+
[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", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", nil]]
|
240889
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240890
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
240891
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
240892
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
240893
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240894
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240895
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240896
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240897
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240898
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
240899
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240900
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240901
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240902
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240903
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240904
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
240905
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240906
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240907
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
240908
|
+
[1m[35m (0.1ms)[0m begin transaction
|
240909
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240910
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240911
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240912
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
240913
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL[0m
|
240914
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
|
240915
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
240916
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
240917
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240918
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240919
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240920
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240921
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240922
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
240923
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240924
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240925
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240926
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240927
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240928
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
240929
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240930
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240931
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
240932
|
+
[1m[35m (0.0ms)[0m begin transaction
|
240933
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240934
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240935
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240936
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240937
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240938
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240939
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240940
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
|
240941
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240942
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240943
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240944
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240945
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240946
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
|
240947
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["user_id", 1]]
|
240948
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240949
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
240950
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
240951
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240952
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["device_token_id", 1], ["status", 200]]
|
240953
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240954
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
|
240955
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
240956
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
240957
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240958
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240959
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240960
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240961
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240962
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
240963
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240964
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240965
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240966
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240967
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240968
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
240969
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240970
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240971
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
240972
|
+
[1m[35m (0.1ms)[0m begin transaction
|
240973
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240974
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240975
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
240976
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
240977
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240978
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
240979
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
240980
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
240981
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240982
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
240983
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
240984
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240985
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
240986
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
240987
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240988
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
240989
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
240990
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
240991
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
240992
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
240993
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240994
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
240995
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
240996
|
+
[1m[35m (0.0ms)[0m begin transaction
|
240997
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
240998
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
240999
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241000
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241001
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
241002
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241003
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241004
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["notification_id", 1]]
|
241005
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241006
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241007
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
241008
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
|
241009
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
241010
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241011
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
241012
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
241013
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241014
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241015
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241016
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241017
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241018
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
241019
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241020
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241021
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241022
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241023
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241024
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
241025
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241026
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241027
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
241028
|
+
[1m[35m (0.1ms)[0m begin transaction
|
241029
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241030
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
241031
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241032
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241033
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:16:54 UTC +00:00]]
|
241034
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241035
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
241036
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
241037
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241038
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241039
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241040
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241041
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241042
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
241043
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241044
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241045
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241046
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241047
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241048
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
241049
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241050
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241051
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
241052
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
241053
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241054
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
241055
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241056
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241057
|
+
[1m[35mSQL (5.0ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241058
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241059
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241060
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
241061
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241062
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241063
|
+
[1m[35mNotifiable::DeviceToken Load (0.2ms)[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
|
241064
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241065
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241066
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241067
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
241068
|
+
Parameters: {"token"=>"ABCD1", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-1@example.com", "device_token"=>{"token"=>"ABCD1", "provider"=>"mock", "app_id"=>"2"}}
|
241069
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
|
241070
|
+
Unpermitted parameters: user_email, device_token
|
241071
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1[0m
|
241072
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
|
241073
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241074
|
+
[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]]
|
241075
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD1' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
241076
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241077
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241078
|
+
Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.9ms)
|
241079
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
241080
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
241081
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
241082
|
+
[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", 2]]
|
241083
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
241084
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241085
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241086
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241087
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241088
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241089
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
241090
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241091
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241092
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241093
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241094
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241095
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
241096
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241097
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241098
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
241099
|
+
[1m[35m (0.1ms)[0m begin transaction
|
241100
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241101
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
241102
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241103
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241104
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241105
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
241106
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241107
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
|
241108
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241109
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241110
|
+
[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
|
241111
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241112
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
241113
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241114
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
241115
|
+
Parameters: {"id"=>"1", "user_email"=>"person-3@example.com", "device_token"=>{"id"=>"1"}}
|
241116
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
241117
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
241118
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
241119
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
|
241120
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
241121
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
|
241122
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'[0m
|
241123
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
241124
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241125
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241126
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241127
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241128
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241129
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
241130
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241131
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241132
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241133
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241134
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241135
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
241136
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241137
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241138
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
241139
|
+
[1m[35m (0.0ms)[0m begin transaction
|
241140
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241141
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
|
241142
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241143
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
241144
|
+
Parameters: {"id"=>"59", "user_email"=>"person-4@example.com", "device_token"=>{"id"=>"59"}}
|
241145
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
|
241146
|
+
Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
241147
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241148
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
241149
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241150
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241151
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241152
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
241153
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241154
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
|
241155
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 2]]
|
241156
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
241157
|
+
[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
|
241158
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
|
241159
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
241160
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241161
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
241162
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
241163
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241164
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
241165
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
241166
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241167
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
241168
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
241169
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241170
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
241171
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
241172
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241173
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
241174
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
241175
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
241176
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241177
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-6@example.com"]]
|
241178
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
241179
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241180
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241181
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241182
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241183
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
241184
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241185
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241186
|
+
[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
|
241187
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
241188
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-6@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
241189
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
241190
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
241191
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
241192
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
241193
|
+
Unpermitted parameters: user_email, device_token
|
241194
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1[0m
|
241195
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
241196
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241197
|
+
[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]]
|
241198
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
241199
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241200
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241201
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.9ms)
|
241202
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
241203
|
+
[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
|
241204
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
241205
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241206
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241207
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241208
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241209
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241210
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
241211
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241212
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241213
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241214
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241215
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241216
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
241217
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241218
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241219
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
241220
|
+
[1m[35m (0.1ms)[0m begin transaction
|
241221
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241222
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241223
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241224
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
241225
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
241226
|
+
[1m[35mNotifiable::DeviceToken Load (0.2ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
241227
|
+
Unpermitted parameters: device_token
|
241228
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
241229
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241230
|
+
[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]]
|
241231
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
241232
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241233
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
241234
|
+
Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.3ms)
|
241235
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
241236
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
241237
|
+
[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]]
|
241238
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
241239
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
241240
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241241
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
241242
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
241243
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241244
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
241245
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
241246
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241247
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
241248
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
241249
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241250
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
241251
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
241252
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241253
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
241254
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
241255
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
241256
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241257
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
241258
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241259
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241260
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241261
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241262
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241263
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
241264
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241265
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241266
|
+
[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
|
241267
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
241268
|
+
Parameters: {"token"=>"ABCD5", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD5", "provider"=>"mpns"}}
|
241269
|
+
[1m[36mNotifiable::DeviceToken Load (0.2ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
241270
|
+
Unpermitted parameters: device_token
|
241271
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
241272
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241273
|
+
[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]]
|
241274
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD5' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
241275
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241276
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241277
|
+
Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.9ms)
|
241278
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
241279
|
+
[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
|
241280
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
241281
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241282
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241283
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241284
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241285
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241286
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
241287
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241288
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241289
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241290
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241291
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241292
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
241293
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241294
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241295
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
241296
|
+
[1m[35m (0.1ms)[0m begin transaction
|
241297
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241298
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
241299
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241300
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241301
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241302
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
241303
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241304
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
|
241305
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241306
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241307
|
+
[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
|
241308
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
241309
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
241310
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
241311
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
241312
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
241313
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
241314
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
241315
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
241316
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
|
241317
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
241318
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241319
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
241320
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
241321
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241322
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
241323
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
241324
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241325
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
241326
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
241327
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241328
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
241329
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
241330
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241331
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
241332
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
241333
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
241334
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241335
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
241336
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241337
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241338
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241339
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241340
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241341
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1[0m
|
241342
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241343
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241344
|
+
[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
|
241345
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
241346
|
+
Parameters: {"id"=>"1", "user_email"=>"person-9@example.com", "device_token"=>{"id"=>"1"}}
|
241347
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
241348
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
241349
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
241350
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
|
241351
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241352
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
241353
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241354
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
|
241355
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
241356
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
241357
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241358
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
241359
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
241360
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241361
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
241362
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
241363
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241364
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
241365
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
241366
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241367
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
241368
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
241369
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241370
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
241371
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
241372
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
241373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241374
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
241375
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241377
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241378
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241379
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
241380
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-10@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
241381
|
+
[1m[35mNotifiable::DeviceToken Load (0.2ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
241382
|
+
Unpermitted parameters: user_email, device_token
|
241383
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
241384
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
|
241385
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241386
|
+
[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]]
|
241387
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
241388
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241389
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241390
|
+
Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.2ms)
|
241391
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
241392
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
241393
|
+
[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
|
241394
|
+
[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]]
|
241395
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
241396
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241397
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241398
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241399
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241400
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241401
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
241402
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241403
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241404
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241405
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241406
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241407
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
241408
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241409
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241410
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
241411
|
+
[1m[35m (0.1ms)[0m begin transaction
|
241412
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241413
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
|
241414
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241415
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
241416
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
241417
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
241418
|
+
Unpermitted parameters: user_email, device_token
|
241419
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
241420
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
|
241421
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241422
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
241423
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
241424
|
+
Completed 422 Unprocessable Entity in 9ms (Views: 0.2ms | ActiveRecord: 0.5ms)
|
241425
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
241426
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM "users";[0m
|
241427
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241428
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
241429
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
241430
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241431
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
241432
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
241433
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241434
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
241435
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
241436
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241437
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
241438
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
241439
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241440
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
241441
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
241442
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
241443
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241444
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241445
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241446
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241447
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241448
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241449
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
241450
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
241451
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241452
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
241453
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
241454
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241455
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
241456
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
241457
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241458
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
241459
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
241460
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241461
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
241462
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
241463
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241464
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
241465
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
241466
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
241467
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241468
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241469
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241470
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
241471
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241472
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241473
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241474
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241475
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241476
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241477
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241478
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
241479
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241480
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241481
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241482
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241483
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241484
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
241485
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241487
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
241488
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241489
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241490
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241492
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241493
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241494
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241495
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
|
241496
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241497
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241498
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241499
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241500
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241501
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
|
241502
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 2]]
|
241503
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241504
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
241505
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241506
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
241507
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241508
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241509
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
241510
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241511
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
|
241512
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
241513
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
241514
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241515
|
+
[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]]
|
241516
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil]]
|
241517
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241518
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 2]]
|
241519
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
|
241520
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241521
|
+
[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]]
|
241522
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil]]
|
241523
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241524
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
241525
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
241526
|
+
[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]]
|
241527
|
+
[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]]
|
241528
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
241529
|
+
[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]]
|
241530
|
+
[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]]
|
241531
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
241532
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
241533
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241534
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
241535
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
241536
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241537
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
241538
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
241539
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241540
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
241541
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
241542
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241543
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
241544
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
241545
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241546
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
241547
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
241548
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
241549
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241550
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241551
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241552
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241553
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
241554
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241555
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241556
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241557
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241558
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241559
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
|
241560
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :sms], ["token", "ABCD10"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241561
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241562
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241563
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241564
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241565
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241566
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241567
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241568
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
241569
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
241570
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
241571
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241572
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
241573
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
241574
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241575
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
241576
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
241577
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241578
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
241579
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
241580
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241581
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
241582
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
241583
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241584
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
241585
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
241586
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
241587
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241588
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241589
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241590
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
241591
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241592
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241593
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241594
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241595
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241596
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241597
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241598
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
241599
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241600
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241601
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241602
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241603
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241604
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
241605
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241606
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241607
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
241608
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241609
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
241610
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241611
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241612
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241613
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241614
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241615
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
241616
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 2]]
|
241617
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241618
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
241619
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241620
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
241621
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241622
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241623
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
241624
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241625
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
|
241626
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
241627
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
241628
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241629
|
+
[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]]
|
241630
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil]]
|
241631
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241632
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
241633
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
241634
|
+
[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]]
|
241635
|
+
[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]]
|
241636
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
241637
|
+
[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]]
|
241638
|
+
[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]]
|
241639
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
241640
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
241641
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241642
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
241643
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
241644
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241645
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
241646
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
241647
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241648
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
241649
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
241650
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241651
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
241652
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
241653
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241654
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
241655
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
241656
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
241657
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241658
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-17@example.com"]]
|
241659
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
241660
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241661
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241662
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241663
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241664
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
241665
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD13"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241666
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241667
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241668
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241669
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241670
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241671
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
241672
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241673
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
241674
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
241675
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
241676
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241677
|
+
[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]]
|
241678
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil]]
|
241679
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241680
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
241681
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
241682
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
241683
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241684
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
241685
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
241686
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241687
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
241688
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
241689
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241690
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
241691
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
241692
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241693
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
241694
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
241695
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241696
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
241697
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
241698
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
241699
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241700
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
241701
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241702
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241703
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241704
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241705
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241706
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
241707
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD14"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241708
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241709
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241710
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241711
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241712
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
241713
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
241714
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241715
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241716
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241717
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241718
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241719
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
241720
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241721
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241722
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241723
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241724
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241725
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
241726
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241727
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241728
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
241729
|
+
[1m[35m (0.1ms)[0m begin transaction
|
241730
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241731
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
241732
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241733
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241734
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241735
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241736
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241737
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
|
241738
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD15"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241739
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241740
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241741
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241742
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241743
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
241744
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241745
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
241746
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241747
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
241748
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
241749
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
241750
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241751
|
+
[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]]
|
241752
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil]]
|
241753
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
241754
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
241755
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
241756
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
241757
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
241758
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241759
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241760
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241761
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241762
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241763
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
241764
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241765
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241766
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241767
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241768
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241769
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
241770
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241771
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241772
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
241773
|
+
[1m[35m (0.1ms)[0m begin transaction
|
241774
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241775
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
|
241776
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241777
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241778
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241779
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241780
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241781
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
|
241782
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241783
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241784
|
+
[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
|
241785
|
+
[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]]
|
241786
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241787
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241788
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241789
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241790
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
241791
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241792
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
241793
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD16"}, "user_email"=>"person-20@example.com", "notification"=>{}}
|
241794
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1[0m
|
241795
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD16') LIMIT 1
|
241796
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
241797
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
|
241798
|
+
[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]]
|
241799
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
241800
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241801
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
|
241802
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241803
|
+
[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]]
|
241804
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241805
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil]]
|
241806
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241807
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
241808
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
241809
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
241810
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
241811
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
241812
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
241813
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241814
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241815
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241816
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241817
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241818
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
241819
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241820
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241821
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241822
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241823
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241824
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
241825
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241826
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241827
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
241828
|
+
[1m[35m (0.0ms)[0m begin transaction
|
241829
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241830
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
|
241831
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241832
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241833
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241834
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241835
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241836
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
|
241837
|
+
[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", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241838
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241839
|
+
[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
|
241840
|
+
[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]]
|
241841
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241842
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241843
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241844
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241845
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
241846
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241847
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241848
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
|
241849
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241850
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
241851
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD17"}, "user_email"=>"person-22@example.com", "notification"=>{}}
|
241852
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
|
241853
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD17') LIMIT 1[0m
|
241854
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
241855
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1[0m
|
241856
|
+
[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]]
|
241857
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
241858
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
241859
|
+
Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
|
241860
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
241861
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
241862
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
241863
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
241864
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
241865
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241866
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241867
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241868
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241869
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241870
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
241871
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241872
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241873
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241874
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241875
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241876
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
241877
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241878
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241879
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
241880
|
+
[1m[35m (0.0ms)[0m begin transaction
|
241881
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241882
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241883
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241884
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241885
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241886
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241887
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
241888
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
241889
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241890
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241891
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241892
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241893
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241894
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
241895
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241896
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241897
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241898
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241899
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241900
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
241901
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241902
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241903
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
241904
|
+
[1m[35m (0.0ms)[0m begin transaction
|
241905
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241906
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241907
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241908
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
241909
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241910
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
241911
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241912
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["notification_id", 1]]
|
241913
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241914
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241915
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
241916
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
|
241917
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
241918
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241919
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
241920
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
241921
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241922
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241923
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241924
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241925
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241926
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
241927
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241928
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241929
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241930
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241931
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241932
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
241933
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241934
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241935
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
241936
|
+
[1m[35m (0.1ms)[0m begin transaction
|
241937
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241938
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241939
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241940
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241941
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241942
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241943
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
241944
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
241945
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241946
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241947
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241948
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241949
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241950
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
241951
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241952
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241953
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241954
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241955
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241956
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
241957
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241958
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241959
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
241960
|
+
[1m[35m (0.0ms)[0m begin transaction
|
241961
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241962
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241963
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241964
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241965
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241966
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241967
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241968
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
|
241969
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241970
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
241971
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
241972
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241973
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241974
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
|
241975
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["user_id", 1]]
|
241976
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
241977
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
241978
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
241979
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
241980
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["device_token_id", 1], ["status", 200]]
|
241981
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241982
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
|
241983
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
241984
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
241985
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241986
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
241987
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
241988
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241989
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
241990
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
241991
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241992
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
241993
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
241994
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
241995
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
241996
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
241997
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
241998
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
241999
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
242000
|
+
[1m[35m (0.1ms)[0m begin transaction
|
242001
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
242002
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00], ["updated_at", Sat, 19 Apr 2014 14:19:11 UTC +00:00]]
|
242003
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
242004
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
242005
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL[0m
|
242006
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
|
242007
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
242008
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
242009
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
242010
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
242011
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
242012
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
242013
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
242014
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
242015
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
242016
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
242017
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
242018
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
242019
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
242020
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
242021
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
242022
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
242023
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|