notifiable-rails 0.19.5 → 0.19.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/notifiable/active_record.rb +5 -16
- data/lib/notifiable/version.rb +1 -1
- data/spec/test_app/log/test.log +2287 -0
- metadata +1 -3
- data/spec/active_record_spec.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d072ac1f38c12a4e341d3253ef90a2fafdfcdf0c
|
4
|
+
data.tar.gz: 15715d4d3cbfbb4e39f225319583ba6e0c306999
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: addc8305ccb36cd70a993d517cdb51728c5d67819ae31c66206a9c34eecec6e4125acc934c087020141ef060ed71da0f7e5ea1f7d50a72f9e5724802bc3990f9
|
7
|
+
data.tar.gz: 12d9eb42a3173ed911f98d5f72f93ad5129b0220e195ebaf3eafa9b01bb021a57f4c0d02b56981397fa4f4b3403f181805c8a7ee9df9f1b663c7136d21dbd4fe
|
@@ -5,16 +5,10 @@ class ActiveRecord::Base
|
|
5
5
|
|
6
6
|
adapter_type = connection.adapter_name.downcase.to_sym
|
7
7
|
case adapter_type
|
8
|
-
when :mysql
|
9
|
-
raise NotImplementedError, "Not implemented type '#{adapter_type}'"
|
10
|
-
when :sqlite
|
11
|
-
self.create(record_list)
|
12
8
|
when :postgresql
|
13
9
|
self.connection.execute(postgresql_bulk_insert_sql(record_list))
|
14
|
-
when :oracleenhanced
|
15
|
-
self.connection.execute(oracle_bulk_insert_sql(record_list))
|
16
10
|
else
|
17
|
-
|
11
|
+
self.default_bulk_insert(record_list)
|
18
12
|
end
|
19
13
|
end
|
20
14
|
|
@@ -36,15 +30,10 @@ class ActiveRecord::Base
|
|
36
30
|
"INSERT INTO #{self.table_name} (#{key_list.join(", ")}) VALUES #{value_list.map {|rec| "(#{rec.join(", ")})" }.join(" ,")}"
|
37
31
|
end
|
38
32
|
|
39
|
-
def self.
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
value_list.each do |rec|
|
44
|
-
inserts << "INTO #{self.table_name} (#{key_list.join(", ")}) VALUES (#{rec.join(", ")})"
|
45
|
-
end
|
46
|
-
|
47
|
-
"INSERT ALL #{inserts.join(' ')} SELECT 1 FROM DUAL;"
|
33
|
+
def self.default_bulk_insert(record_list)
|
34
|
+
ActiveRecord::Base.transaction do
|
35
|
+
record_list.each{|record| Notifiable::NotificationStatus.create(record) }
|
36
|
+
end
|
48
37
|
end
|
49
38
|
|
50
39
|
end
|
data/lib/notifiable/version.rb
CHANGED
data/spec/test_app/log/test.log
CHANGED
@@ -298334,3 +298334,2290 @@ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
|
|
298334
298334
|
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298335
298335
|
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
298336
298336
|
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
298337
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
298338
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298339
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298340
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298341
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298342
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298343
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298344
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298345
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298346
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298347
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298348
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298349
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298350
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298351
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298352
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298353
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298354
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298355
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298356
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298357
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298358
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298359
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298360
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298361
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298362
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
298363
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298364
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
298365
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
298366
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298367
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
298368
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
298369
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298370
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
298371
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
298372
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298373
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
298374
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
298375
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298376
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
298377
|
+
[1m[36m (6.6ms)[0m [1mrollback transaction[0m
|
298378
|
+
[1m[35m (0.1ms)[0m begin transaction
|
298379
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298380
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298381
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298382
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298383
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298384
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298385
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
298386
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298387
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
298388
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
298389
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298390
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
298391
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
298392
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298393
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
298394
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
298395
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298396
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
298397
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
298398
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298399
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298400
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
298401
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
298402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298403
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298404
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298405
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298406
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298407
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298408
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
298409
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298410
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
298411
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
298412
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298413
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
298414
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
298415
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298416
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
298417
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
298418
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298419
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
298420
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
298421
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298422
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
298423
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
298424
|
+
[1m[35m (0.0ms)[0m begin transaction
|
298425
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298426
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298427
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298428
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298429
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298430
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298431
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ?[0m [["app_id", 1]]
|
298432
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
298433
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298434
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
298435
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
298436
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298437
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
298438
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
298439
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298440
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
298441
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
298442
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298443
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
298444
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
298445
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298446
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
298447
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
298448
|
+
[1m[35m (0.0ms)[0m begin transaction
|
298449
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298450
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298451
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298452
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298453
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298454
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298455
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
298456
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298457
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
298458
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
298459
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298460
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
298461
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
298462
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298463
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
298464
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
298465
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298466
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
298467
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
298468
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298469
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298470
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
298471
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
298472
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298473
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
298474
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298475
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298476
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298477
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298478
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298479
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
|
298480
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298481
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298482
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298483
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298484
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298485
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298486
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298487
|
+
[1m[36mNotifiable::DeviceToken Load (0.2ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
298488
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298489
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
298490
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298491
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
298492
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
298493
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298494
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil]]
|
298495
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298496
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
298497
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
298498
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298499
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
298500
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
298501
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298502
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
298503
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
298504
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298505
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
298506
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
298507
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298508
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
298509
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
298510
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298511
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298512
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
298513
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
298514
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298515
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-2@example.com"]]
|
298516
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298517
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298518
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298519
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298520
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298521
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "is_valid", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["is_valid", false], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
|
298522
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298523
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298524
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298525
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298526
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298527
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298528
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298529
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
298530
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
298531
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
298532
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298533
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["params", nil]]
|
298534
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298535
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
298536
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
298537
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298538
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
298539
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
298540
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298541
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
298542
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
298543
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298544
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
298545
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
298546
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298547
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
298548
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
298549
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298550
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
298551
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
298552
|
+
[1m[35m (0.1ms)[0m begin transaction
|
298553
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298554
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
|
298555
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298556
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298557
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298558
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298559
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298560
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
|
298561
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298562
|
+
[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
|
298563
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298564
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
|
298565
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298566
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
298567
|
+
Parameters: {"id"=>"1", "user_email"=>"person-4@example.com", "token"=>"ZXY987", "device_token"=>{"id"=>"1", "token"=>"ZXY987"}}
|
298568
|
+
[1m[35mNotifiable::DeviceToken Load (0.2ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
298569
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
298570
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
298571
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1[0m
|
298572
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
298573
|
+
Completed 401 Unauthorized in 4ms (ActiveRecord: 0.5ms)
|
298574
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
298575
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298576
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
298577
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
298578
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298579
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
298580
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
298581
|
+
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298582
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
298583
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
298584
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298585
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
298586
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
298587
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298588
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
298589
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
298590
|
+
[1m[35m (0.1ms)[0m begin transaction
|
298591
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298592
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
298593
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298594
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
298595
|
+
Parameters: {"id"=>"59", "user_email"=>"person-5@example.com", "device_token"=>{"id"=>"59"}}
|
298596
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
|
298597
|
+
Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
298598
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298599
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
298600
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298601
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298602
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298603
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298604
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298605
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 2]]
|
298606
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298607
|
+
[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
|
298608
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'[0m
|
298609
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
298610
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298611
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
298612
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
298613
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298614
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
298615
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
298616
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298617
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
298618
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
298619
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298620
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
298621
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
298622
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298623
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
298624
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
298625
|
+
[1m[35m (0.1ms)[0m begin transaction
|
298626
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298627
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
|
298628
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298629
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298630
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298631
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298632
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298633
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
|
298634
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298635
|
+
[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
|
298636
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298637
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
298638
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298639
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
298640
|
+
Parameters: {"id"=>"1", "user_email"=>"person-8@example.com", "device_token"=>{"id"=>"1"}}
|
298641
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
298642
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
298643
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
298644
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1[0m
|
298645
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
298646
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
298647
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
|
298648
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
298649
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298650
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
298651
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
298652
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298653
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
298654
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
298655
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298656
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
298657
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
298658
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298659
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
298660
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
298661
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298662
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298663
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
298664
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
298665
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298666
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
298667
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298668
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298669
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298670
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298671
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298672
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
|
298673
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298674
|
+
[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
|
298675
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
298676
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
298677
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
298678
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
298679
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
298680
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
298681
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
298682
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
298683
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
|
298684
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
298685
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298686
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
298687
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
298688
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298689
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
298690
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
298691
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298692
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
298693
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
298694
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298695
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
298696
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
298697
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298698
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298699
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
298700
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
298701
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298702
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298703
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298704
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
298705
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
298706
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1[0m
|
298707
|
+
Unpermitted parameters: device_token
|
298708
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
298709
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298710
|
+
[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]]
|
298711
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298712
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298713
|
+
Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms)
|
298714
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
298715
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
298716
|
+
[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]]
|
298717
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
298718
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
298719
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298720
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
298721
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
298722
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298723
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
298724
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
298725
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298726
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
298727
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
298728
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298729
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
298730
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
298731
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298732
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298733
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
298734
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
298735
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298736
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
298737
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298738
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298739
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00]]
|
298740
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298741
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298742
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 16 Jun 2014 17:19:08 UTC +00:00], ["user_id", 1]]
|
298743
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298744
|
+
[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
|
298745
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
298746
|
+
Parameters: {"id"=>"1", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"1"}}
|
298747
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
298748
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
298749
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
298750
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
298751
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298752
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ?[0m [["id", 1]]
|
298753
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298754
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
298755
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
298756
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
298757
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298758
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
298759
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
298760
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298761
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
298762
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
298763
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298764
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
298765
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
298766
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298767
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
298768
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
298769
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298770
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
298771
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
298772
|
+
[1m[35m (0.1ms)[0m begin transaction
|
298773
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298774
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
|
298775
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298776
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298777
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298778
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298779
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298780
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
298781
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298782
|
+
[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
|
298783
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
298784
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
298785
|
+
[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"]]
|
298786
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
298787
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
298788
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
|
298789
|
+
Unpermitted parameters: user_email, device_token
|
298790
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
298791
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
|
298792
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298793
|
+
[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]]
|
298794
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["token", "DEF456"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298795
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298796
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
298797
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
298798
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
298799
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
298800
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298801
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
298802
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
298803
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298804
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
298805
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
298806
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298807
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
298808
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
298809
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298810
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
298811
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
298812
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298813
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298814
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
298815
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
298816
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298817
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
298818
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298820
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298821
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298822
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
298823
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-12@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
298824
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
|
298825
|
+
Unpermitted parameters: user_email, device_token
|
298826
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1[0m
|
298827
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
298828
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298829
|
+
[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]]
|
298830
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
298831
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298832
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
298833
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
298834
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
298835
|
+
[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
|
298836
|
+
[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]]
|
298837
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
298838
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298839
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
298840
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
298841
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298842
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
298843
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
298844
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298845
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
298846
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
298847
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298848
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
298849
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
298850
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298851
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298852
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
298853
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
298854
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298855
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
298856
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298857
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
298858
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-13@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
298859
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1[0m
|
298860
|
+
Unpermitted parameters: user_email, device_token
|
298861
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
|
298862
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1[0m
|
298863
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298864
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
298865
|
+
Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
298866
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
298867
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM "users";[0m
|
298868
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298869
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
298870
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
298871
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298872
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
298873
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
298874
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298875
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
298876
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
298877
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298878
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
298879
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
298880
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298881
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298882
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
298883
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
298884
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298885
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-14@example.com"]]
|
298886
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298887
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298888
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298889
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298890
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298891
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
298892
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298893
|
+
[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
|
298894
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
298895
|
+
Parameters: {"token"=>"ABCD11", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD11", "provider"=>"mpns"}}
|
298896
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
|
298897
|
+
Unpermitted parameters: device_token
|
298898
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
298899
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298900
|
+
[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]]
|
298901
|
+
[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", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298902
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298903
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
298904
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
298905
|
+
[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
|
298906
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
298907
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298908
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
298909
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
298910
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298911
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
298912
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
298913
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298914
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
298915
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
298916
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298917
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
298918
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
298919
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298920
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
298921
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
298922
|
+
[1m[35m (0.1ms)[0m begin transaction
|
298923
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298924
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
|
298925
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298926
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
298927
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298928
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298929
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298930
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
298931
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298932
|
+
[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
|
298933
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298934
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298935
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298936
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
298937
|
+
Parameters: {"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-15@example.com", "device_token"=>{"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2"}}
|
298938
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
|
298939
|
+
Unpermitted parameters: user_email, device_token
|
298940
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1[0m
|
298941
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
|
298942
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298943
|
+
[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]]
|
298944
|
+
[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", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298945
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298946
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.7ms)
|
298947
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
298948
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
298949
|
+
[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
|
298950
|
+
[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]]
|
298951
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
298952
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298953
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
298954
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
298955
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298956
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
298957
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
298958
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298959
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
298960
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
298961
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298962
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
298963
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
298964
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298965
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
298966
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
298967
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
298968
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298969
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298970
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298971
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298972
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "is_valid", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["is_valid", false], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298973
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298974
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
298975
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
298976
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
298977
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298978
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
298979
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
298980
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
298981
|
+
Parameters: {"token"=>"ABCD13", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-16@example.com", "device_token"=>{"token"=>"ABCD13", "provider"=>"mock", "app_id"=>"2"}}
|
298982
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
|
298983
|
+
Unpermitted parameters: user_email, device_token
|
298984
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1[0m
|
298985
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
|
298986
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298987
|
+
[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]]
|
298988
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", "mock"], ["token", "ABCD13"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
298989
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298990
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.7ms)
|
298991
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
298992
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
298993
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" DESC LIMIT 1[0m
|
298994
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
298995
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
298996
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
298997
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
298998
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
298999
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299000
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
299001
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299002
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299003
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299004
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299005
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299006
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
299007
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299008
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299009
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
299010
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299011
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299012
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299013
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299014
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299015
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299016
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299017
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
299018
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
299019
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299020
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299021
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299022
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299023
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299024
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
299025
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299026
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299027
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299028
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299029
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299030
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
299031
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299032
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299033
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
299034
|
+
[1m[35m (0.0ms)[0m begin transaction
|
299035
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299036
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299037
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299038
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299039
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299040
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299041
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299042
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
299043
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299044
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299045
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299046
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299047
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299048
|
+
[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", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
299049
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299050
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
299051
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299052
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
299053
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299054
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
299055
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
299056
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299057
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
|
299058
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299059
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299060
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299061
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299062
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299063
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299064
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299065
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299066
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
|
299067
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299068
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299069
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299070
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299071
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299072
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 2]]
|
299073
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299074
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
299075
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299076
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 0]]
|
299077
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299078
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
|
299079
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 2]]
|
299080
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299081
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
|
299082
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299083
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
299084
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
299085
|
+
[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]]
|
299086
|
+
[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]]
|
299087
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
299088
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
|
299089
|
+
[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]]
|
299090
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
299091
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
299092
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299093
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299094
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
299095
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299096
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299097
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299098
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299099
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299100
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
299101
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299102
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299103
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299104
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299105
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299106
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
299107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
299108
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299109
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-19@example.com"]]
|
299110
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299111
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299112
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299113
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299114
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299115
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :sms], ["token", "ABCD16"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
299116
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299117
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299118
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299119
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299121
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299122
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299123
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
299124
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
299125
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299126
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299127
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299128
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299129
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299130
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
299131
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299132
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299133
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299134
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299135
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299136
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
299137
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299138
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299139
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
299140
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299141
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299142
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299143
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299144
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299145
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299146
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299147
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299148
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
|
299149
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299150
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299151
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299152
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299153
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299154
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
299155
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299156
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
299157
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299158
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
299159
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299160
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
299161
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
299162
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299163
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
|
299164
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299165
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
299166
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
299167
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
299168
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
299169
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299170
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299171
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299172
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299173
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299174
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
299175
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299176
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299177
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299178
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299179
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299180
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
299181
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299182
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299183
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
299184
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299185
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299186
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299187
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299188
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299189
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299190
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299191
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299192
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
|
299193
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299194
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299195
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299196
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299197
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299198
|
+
[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", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
299199
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299200
|
+
[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
|
299201
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299202
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
299203
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299204
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
299205
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
299206
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299207
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
|
299208
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299209
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
299210
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
299211
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
299212
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299213
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299214
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
299215
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299216
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299217
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299218
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299219
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299220
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
299221
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299222
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299223
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299224
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299225
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299226
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
299227
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
299228
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299229
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299230
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299231
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299232
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299233
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299234
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
299235
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
299236
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299237
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299238
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
299239
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299240
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299241
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299242
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299243
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299244
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
299245
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299246
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299247
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299248
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299249
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299250
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
299251
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
299252
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299253
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299254
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299255
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299256
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299257
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299258
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299259
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?)[0m [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["notification_id", 1]]
|
299260
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299261
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299262
|
+
[1m[35mNotifiable::NotificationStatus Load (0.2ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
299263
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ?[0m [["id", 1]]
|
299264
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
|
299265
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299266
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
299267
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
299268
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299269
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299270
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
299271
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299272
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299273
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299274
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299275
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299276
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
299277
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299278
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299279
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299280
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299281
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299282
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
299283
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
299284
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299285
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299286
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299287
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299288
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299289
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299290
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299291
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-22@example.com"]]
|
299292
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299293
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299294
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299295
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299296
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299297
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD19"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
299298
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299299
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
299300
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299301
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-23@example.com"]]
|
299302
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299303
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299304
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299305
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299306
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299307
|
+
[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", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD20"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 2]]
|
299308
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299309
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
299310
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299311
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
299312
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
|
299313
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299314
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
299315
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
299316
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299317
|
+
[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", 2], ["gateway_accepted_count", 2], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
|
299318
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299319
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
299320
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
299321
|
+
[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]]
|
299322
|
+
[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]]
|
299323
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
299324
|
+
[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]]
|
299325
|
+
[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]]
|
299326
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
299327
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
299328
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299329
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299330
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
299331
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299332
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299333
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299334
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299335
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299336
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
299337
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299338
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299339
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299340
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299341
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299342
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
299343
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
299344
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299345
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-24@example.com"]]
|
299346
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299347
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299348
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299349
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299350
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299351
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD21"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
299352
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299353
|
+
[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
|
299354
|
+
[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]]
|
299355
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299356
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299357
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299358
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299359
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
299360
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299361
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
299362
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-24@example.com", "notification"=>{}}
|
299363
|
+
[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
|
299364
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-24@example.com' LIMIT 1
|
299365
|
+
[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]]
|
299366
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
299367
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299368
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
|
299369
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299370
|
+
[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]]
|
299371
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299372
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
|
299373
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299374
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
299375
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
299376
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
299377
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
299378
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
299379
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
299380
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299381
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299382
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299383
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299384
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299385
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
299386
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299387
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299388
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299389
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299390
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299391
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
299392
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299393
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299394
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
299395
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299396
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299397
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-25@example.com"]]
|
299398
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299399
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299400
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299401
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299403
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD22"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
299404
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299405
|
+
[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
|
299406
|
+
[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]]
|
299407
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299408
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299409
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299410
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299411
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299412
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299413
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299414
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD23"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299415
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299416
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299417
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
|
299418
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299419
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
299420
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
|
299421
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1
|
299422
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
299423
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
|
299424
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299425
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
|
299426
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299427
|
+
[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]]
|
299428
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299429
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil]]
|
299430
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299431
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
|
299432
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
299433
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
299434
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
299435
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
299436
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
299437
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299438
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299439
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299440
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299441
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299442
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
299443
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299444
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299445
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299446
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299447
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299448
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
299449
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299450
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299451
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
299452
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299453
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299454
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-26@example.com"]]
|
299455
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299456
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299457
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299458
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299459
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299460
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["provider", :mock], ["token", "ABCD24"], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["user_id", 1]]
|
299461
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299462
|
+
[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
|
299463
|
+
[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]]
|
299464
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299465
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00]]
|
299466
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299467
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299468
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:09 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
299469
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299470
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299471
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-27@example.com"]]
|
299472
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299473
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
299474
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-27@example.com", "notification"=>{}}
|
299475
|
+
[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
|
299476
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-27@example.com' LIMIT 1
|
299477
|
+
[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]]
|
299478
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
299479
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
299480
|
+
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.3ms)
|
299481
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
299482
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
299483
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
299484
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
299485
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
299486
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299487
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299488
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
299489
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299490
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299491
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299492
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299493
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299494
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
299495
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299496
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299497
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299498
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299499
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299500
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
299501
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
299502
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299503
|
+
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299504
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299505
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299506
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299507
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299508
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
299509
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299510
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299511
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299512
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299513
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299514
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
299515
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299516
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299517
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299518
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299519
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299520
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
299521
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299522
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299523
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
299524
|
+
[1m[35m (0.0ms)[0m begin transaction
|
299525
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299526
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299527
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299528
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299529
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299530
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299531
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
299532
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299533
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299534
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
299535
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299536
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299537
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299538
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299539
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299540
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
299541
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299542
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299543
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299544
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299545
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299546
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
299547
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
299548
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299549
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
299550
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299551
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299552
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299553
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299554
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299555
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :sms], ["token", "ABCD1"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
299556
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299557
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299558
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299559
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299560
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299561
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299562
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299563
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
299564
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
299565
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299566
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299567
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299568
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299569
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299570
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
299571
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299572
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299573
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299574
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299575
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299576
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
299577
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299578
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299579
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
299580
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299581
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299582
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299583
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299584
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299585
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299586
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299587
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299588
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
299589
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299590
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299591
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299592
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299593
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299594
|
+
[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", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
299595
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299596
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
299597
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299598
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
299599
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299600
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
299601
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
299602
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299603
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
|
299604
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299605
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299606
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299607
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299608
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299609
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299610
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299611
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299612
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
|
299613
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299614
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299615
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299616
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299617
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299618
|
+
[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", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 2]]
|
299619
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299620
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
299621
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299622
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 0]]
|
299623
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299624
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
|
299625
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 2]]
|
299626
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299627
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
|
299628
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299629
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
299630
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
299631
|
+
[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]]
|
299632
|
+
[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]]
|
299633
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
299634
|
+
[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]]
|
299635
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 2]]
|
299636
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
299637
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
299638
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299639
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299640
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
299641
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299642
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299643
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299644
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299645
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299646
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
299647
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299648
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299649
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299650
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299651
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299652
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
299653
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
299654
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299655
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299656
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299657
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299658
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299659
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299660
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
299661
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
299662
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299663
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299664
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
299665
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299666
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299667
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299668
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299669
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299670
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
299671
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299672
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299673
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299674
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299675
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299676
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
299677
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
299678
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299679
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299680
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299681
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299682
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299683
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299684
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299685
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
299686
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299687
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299688
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299689
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299690
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299691
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
299692
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299693
|
+
[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
|
299694
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299695
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
299696
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299697
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
299698
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
299699
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299700
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
|
299701
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299702
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
299703
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
299704
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
299705
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299706
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299707
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299708
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299709
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299710
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
299711
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299712
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299713
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299714
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299715
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299716
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
299717
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299718
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299719
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
299720
|
+
[1m[35m (0.0ms)[0m begin transaction
|
299721
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299722
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299723
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299724
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299725
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299726
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299727
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299728
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
299729
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299730
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299731
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299732
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299733
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299734
|
+
[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", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
299735
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299736
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
299737
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299738
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
299739
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299740
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299741
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299742
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299743
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299744
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 2]]
|
299745
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299746
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
299747
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299748
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
299749
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
|
299750
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299751
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
299752
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
299753
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299754
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["gateway_accepted_count", 2], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
|
299755
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299756
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
299757
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses"[0m
|
299758
|
+
[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]]
|
299759
|
+
[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]]
|
299760
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
299761
|
+
[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]]
|
299762
|
+
[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]]
|
299763
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
299764
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
299765
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299766
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299767
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299768
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299769
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299770
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
299771
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299772
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299773
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299774
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299775
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299776
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
299777
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299778
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299779
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
299780
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299781
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299782
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299783
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299784
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299785
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299786
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299787
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299788
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
|
299789
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299790
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
299791
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299792
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299793
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299794
|
+
[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", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
299795
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299796
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
299797
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299798
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
299799
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299800
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
299801
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
299802
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299803
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
|
299804
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
299805
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
299806
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
299807
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
299808
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
299809
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299810
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299811
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299812
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299813
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299814
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
299815
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299816
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299817
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299818
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299819
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299820
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
299821
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299822
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299823
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
299824
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299825
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
299826
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299827
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299828
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299829
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299830
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299831
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299832
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["notification_id", 1]]
|
299833
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299834
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299835
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
299836
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
|
299837
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
299838
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299839
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
299840
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
299841
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299842
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299843
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299844
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299845
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299846
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
299847
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299848
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299849
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299850
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299851
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299852
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
299853
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299854
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299855
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
299856
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299857
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299858
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299859
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299860
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299861
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299862
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299863
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
299864
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
299865
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299866
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299867
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299868
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299869
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299870
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
299871
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299872
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299873
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299874
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299875
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299876
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
299877
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299878
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299879
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
299880
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299881
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299882
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
299883
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299884
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
299885
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-8@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
299886
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1
|
299887
|
+
Unpermitted parameters: user_email, device_token
|
299888
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1[0m
|
299889
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
|
299890
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299891
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
299892
|
+
Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
299893
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
299894
|
+
[1m[35m (0.2ms)[0m DELETE FROM "users";
|
299895
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299896
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
299897
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
299898
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299899
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
299900
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
299901
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299902
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
299903
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
299904
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299905
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
299906
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
299907
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299908
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
299909
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
299910
|
+
[1m[35m (0.1ms)[0m begin transaction
|
299911
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299912
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
|
299913
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299914
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299915
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299916
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299917
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299918
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
299919
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299920
|
+
[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
|
299921
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299922
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
|
299923
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299924
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
299925
|
+
Parameters: {"id"=>"1", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"1"}}
|
299926
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
299927
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
299928
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
299929
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
299930
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
299931
|
+
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms)
|
299932
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
|
299933
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
299934
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299935
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299936
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
299937
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299938
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299939
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299940
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299941
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299942
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
299943
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299944
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299945
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299946
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299947
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299948
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
299949
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
299950
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299951
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299952
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299953
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
299954
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
299955
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1[0m
|
299956
|
+
Unpermitted parameters: device_token
|
299957
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
299958
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299959
|
+
[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]]
|
299960
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299961
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299962
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
|
299963
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
299964
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
299965
|
+
[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]]
|
299966
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users"
|
299967
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
299968
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299969
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
299970
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
299971
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299972
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
299973
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
299974
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299975
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
299976
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
299977
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
299978
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
299979
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
299980
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
299981
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
299982
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
299983
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
299984
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299985
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
299986
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299987
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
299988
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
299989
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
299990
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
299991
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
299992
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
299993
|
+
[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
|
299994
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
299995
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
299996
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
299997
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
299998
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
299999
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
300000
|
+
Unpermitted parameters: user_email, device_token
|
300001
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
|
300002
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
300003
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300004
|
+
[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]]
|
300005
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300006
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300007
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
300008
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
300009
|
+
[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
|
300010
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
300011
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300012
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
300013
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
300014
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300015
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
300016
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
300017
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300018
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
300019
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
300020
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300021
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
300022
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
300023
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300024
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
300025
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
300026
|
+
[1m[35m (0.1ms)[0m begin transaction
|
300027
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300028
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300029
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300030
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300031
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "is_valid", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["is_valid", false], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300032
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300033
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300034
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300035
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300036
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300037
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
300038
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300039
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
300040
|
+
Parameters: {"token"=>"ABCD10", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-12@example.com", "device_token"=>{"token"=>"ABCD10", "provider"=>"mock", "app_id"=>"2"}}
|
300041
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1[0m
|
300042
|
+
Unpermitted parameters: user_email, device_token
|
300043
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
300044
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1[0m
|
300045
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300046
|
+
[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]]
|
300047
|
+
[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", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", "mock"], ["token", "ABCD10"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300048
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300049
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
300050
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
300051
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
300052
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" DESC LIMIT 1
|
300053
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
300054
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300055
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
300056
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
300057
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300058
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
300059
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
300060
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300061
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
300062
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
300063
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300064
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
300065
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
300066
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300067
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
300068
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
300069
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
300070
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300071
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
300072
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300073
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300074
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300075
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300076
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300077
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300078
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300079
|
+
[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
|
300080
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
300081
|
+
Parameters: {"id"=>"1", "user_email"=>"person-13@example.com", "device_token"=>{"id"=>"1"}}
|
300082
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
300083
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
300084
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
300085
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1[0m
|
300086
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300087
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ?[0m [["id", 1]]
|
300088
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300089
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
|
300090
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
300091
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
300092
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300093
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
300094
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
300095
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300096
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
300097
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
300098
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300099
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
300100
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
300101
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300102
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
300103
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
300104
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300105
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
300106
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
300107
|
+
[1m[35m (0.0ms)[0m begin transaction
|
300108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300109
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
300110
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300111
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
300112
|
+
Parameters: {"id"=>"59", "user_email"=>"person-14@example.com", "device_token"=>{"id"=>"59"}}
|
300113
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
|
300114
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
300115
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300116
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
|
300117
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300118
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300119
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300120
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300121
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300122
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 2]]
|
300123
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300124
|
+
[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
|
300125
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12'[0m
|
300126
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
300127
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300128
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
300129
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
300130
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300131
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
300132
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
300133
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300134
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
300135
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
300136
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300137
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
300138
|
+
[1m[35m (0.2ms)[0m DELETE FROM "notifiable_statuses";
|
300139
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300140
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
300141
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
300142
|
+
[1m[35m (0.1ms)[0m begin transaction
|
300143
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300144
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
300145
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300146
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300147
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300148
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300149
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300150
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300151
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300152
|
+
[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
|
300153
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300154
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
300155
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300156
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
300157
|
+
Parameters: {"id"=>"1", "user_email"=>"person-17@example.com", "token"=>"ZXY987", "device_token"=>{"id"=>"1", "token"=>"ZXY987"}}
|
300158
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
300159
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
300160
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
300161
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1[0m
|
300162
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
300163
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
300164
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
300165
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300166
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
300167
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
300168
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300169
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
300170
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
300171
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300172
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
300173
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
300174
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300175
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
300176
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
300177
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300178
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
300179
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
300180
|
+
[1m[35m (0.1ms)[0m begin transaction
|
300181
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300182
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
|
300183
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300184
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300185
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300186
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300187
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300188
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300189
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300190
|
+
[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
|
300191
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
300192
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
300193
|
+
[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"]]
|
300194
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
300195
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
300196
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
300197
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
300198
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
300199
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14'[0m
|
300200
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
300201
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300202
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
300203
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
300204
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300205
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
300206
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
300207
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300208
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
300209
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
300210
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300211
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
300212
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
300213
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300214
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
300215
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
300216
|
+
[1m[35m (0.0ms)[0m begin transaction
|
300217
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300218
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
300219
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300220
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300221
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300222
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300223
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
300224
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-19@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
300225
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1[0m
|
300226
|
+
Unpermitted parameters: user_email, device_token
|
300227
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
|
300228
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1[0m
|
300229
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300230
|
+
[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]]
|
300231
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300232
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300233
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
300234
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
300235
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
300236
|
+
[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
|
300237
|
+
[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]]
|
300238
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
300239
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300240
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
300241
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
300242
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300243
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
300244
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
300245
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300246
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
300247
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
300248
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300249
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
300250
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
300251
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300252
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
300253
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
300254
|
+
[1m[35m (0.0ms)[0m begin transaction
|
300255
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300256
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
|
300257
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300258
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300259
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300260
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300261
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300262
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300263
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300264
|
+
[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
|
300265
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
300266
|
+
Parameters: {"token"=>"ABCD15", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD15", "provider"=>"mpns"}}
|
300267
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1[0m
|
300268
|
+
Unpermitted parameters: device_token
|
300269
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
300270
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300271
|
+
[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]]
|
300272
|
+
[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", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300273
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300274
|
+
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
|
300275
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
300276
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
300277
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
300278
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300279
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
300280
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
300281
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300282
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
300283
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
300284
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300285
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
300286
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
300287
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300288
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
300289
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
300290
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300291
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
300292
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
300293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
300294
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300295
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
300296
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300297
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300298
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300299
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300300
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300301
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300302
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300303
|
+
[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
|
300304
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300305
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300306
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300307
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
300308
|
+
Parameters: {"token"=>"ABCD16", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-21@example.com", "device_token"=>{"token"=>"ABCD16", "provider"=>"mock", "app_id"=>"2"}}
|
300309
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' AND "notifiable_device_tokens"."is_valid" = 't' LIMIT 1[0m
|
300310
|
+
Unpermitted parameters: user_email, device_token
|
300311
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
|
300312
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1[0m
|
300313
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300314
|
+
[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]]
|
300315
|
+
[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", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300316
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300317
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
300318
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
300319
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
300320
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
300321
|
+
[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]]
|
300322
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
300323
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300324
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
300325
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
300326
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300327
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
300328
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
300329
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300330
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
300331
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
300332
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300333
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
300334
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
300335
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300336
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
300337
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
300338
|
+
[1m[35m (0.1ms)[0m begin transaction
|
300339
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300340
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300341
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300342
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300343
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300344
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300345
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ?[0m [["app_id", 1]]
|
300346
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
300347
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300348
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
300349
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
300350
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300351
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
300352
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
300353
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300354
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
300355
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
300356
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300357
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
300358
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
300359
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300360
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
300361
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
300362
|
+
[1m[35m (0.1ms)[0m begin transaction
|
300363
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300364
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300365
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300366
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300367
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300368
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300369
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
300370
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300371
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
300372
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
300373
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300374
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
300375
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
300376
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300377
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
300378
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
300379
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300380
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
300381
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
300382
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300383
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
300384
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
300385
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
300386
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300387
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-22@example.com"]]
|
300388
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300389
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300390
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300391
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300393
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300394
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300395
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300396
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300397
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300398
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300399
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300400
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300401
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
300402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300403
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
300404
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300405
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
300406
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
300407
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300408
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
|
300409
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300410
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
300411
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
300412
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300413
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
300414
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
300415
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300416
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
300417
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
300418
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300419
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
300420
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
300421
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300422
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
300423
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
300424
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300425
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
300426
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
300427
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
300428
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300429
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-23@example.com"]]
|
300430
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300431
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300432
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300433
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300434
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300435
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "is_valid", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["is_valid", false], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300436
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300437
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300438
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300439
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300440
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300441
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300442
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300443
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
300444
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
300445
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
300446
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300447
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
|
300448
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300449
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
300450
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
300451
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300452
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
300453
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
300454
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300455
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
300456
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
300457
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300458
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
300459
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
300460
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300461
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
300462
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
300463
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300464
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
300465
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
300466
|
+
[1m[35m (0.0ms)[0m begin transaction
|
300467
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300468
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
|
300469
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300470
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300471
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300472
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300473
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300474
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD19"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300475
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300476
|
+
[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
|
300477
|
+
[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]]
|
300478
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300479
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300480
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300481
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300482
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
300483
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300484
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
300485
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-24@example.com", "notification"=>{}}
|
300486
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
|
300487
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-24@example.com' LIMIT 1[0m
|
300488
|
+
[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]]
|
300489
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
300490
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300491
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
300492
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300493
|
+
[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]]
|
300494
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300495
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
|
300496
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300497
|
+
Completed 200 OK in 7ms (ActiveRecord: 1.0ms)
|
300498
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
300499
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
300500
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
300501
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
300502
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
300503
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300504
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
300505
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
300506
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300507
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
300508
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
300509
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300510
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
300511
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
300512
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300513
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
300514
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
300515
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300516
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
300517
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
300518
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
300519
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300520
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-25@example.com"]]
|
300521
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300522
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300523
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300524
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300525
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300526
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD20"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300527
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300528
|
+
[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
|
300529
|
+
[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]]
|
300530
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300531
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300532
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300533
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300534
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300535
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300536
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300537
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD21"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300538
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300539
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300540
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
|
300541
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300542
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
300543
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
|
300544
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1[0m
|
300545
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
300546
|
+
[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]]
|
300547
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300548
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
300549
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300550
|
+
[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]]
|
300551
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
300552
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil]]
|
300553
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
300554
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
|
300555
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
300556
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
300557
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
300558
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
300559
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
300560
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300561
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
300562
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
300563
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300564
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
300565
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
300566
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300567
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
300568
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
300569
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300570
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
300571
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
300572
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300573
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
300574
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
300575
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
300576
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300577
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-26@example.com"]]
|
300578
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300579
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300580
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300581
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300582
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300583
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["provider", :mock], ["token", "ABCD22"], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["user_id", 1]]
|
300584
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300585
|
+
[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
|
300586
|
+
[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]]
|
300587
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
300588
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["params", nil], ["updated_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00]]
|
300589
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300590
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300591
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 16 Jun 2014 17:19:24 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
300592
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300593
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
300594
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-27@example.com"]]
|
300595
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300596
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
300597
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-27@example.com", "notification"=>{}}
|
300598
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
|
300599
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-27@example.com' LIMIT 1[0m
|
300600
|
+
[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]]
|
300601
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
300602
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
300603
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
300604
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
300605
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
300606
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
300607
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
300608
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
300609
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300610
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
300611
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
300612
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300613
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
300614
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
300615
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300616
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
300617
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
300618
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
300619
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
300620
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
300621
|
+
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
300622
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
300623
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|