notifiable-rails 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83bb0e8860fab12be63d5b35da23ab2c825840bd
4
- data.tar.gz: a826be2bc0ff03cfb1fcd39fab7eb2ccaff542f9
3
+ metadata.gz: bbf129b8713ce20a44cf5b5520ed461f836bdbd3
4
+ data.tar.gz: 751375546716c57f9f6a2609a30f371e84e24080
5
5
  SHA512:
6
- metadata.gz: 034954ab957cb1bdd88f7c4ae48b00db0d077f48d4a73077a97db11f65a1a162a8b633b7447769acb3176d656adc2ed713f9511b6c5ed0a34abdb4ae5c8c70a2
7
- data.tar.gz: 6749f8699d22a698b72e692e2e29c5063c723b96f706eae86334d750b65affbe95c8cd586592946f3410a4ab63f94f2ddef30f70007b8e763b8bad5fe2e6c7b6
6
+ metadata.gz: 68f3cb42c371af8a5f3e12d6a80296c08be98b09440f62a0f5acc728bbc373fe44051f8c97f93c3ecae438ad7bd6517034d8e551bc5f429024294fe8f7df29dd
7
+ data.tar.gz: 74a22a65e1bfc8cab6404a24161ef4595552c0cc90be068908509f6e044c2cd05e417f2cf63cb361002d9b9ecaddea852d8baf6d8391310869f1d9159c0e242c
@@ -1,5 +1,5 @@
1
1
 
2
2
  Notifiable::Engine.routes.draw do
3
3
  resources :device_tokens, :only => [:create, :destroy]
4
- put 'notification_statuses/:uuid/opened', :to => "notification_statuses#opened"
4
+ put 'notification_statuses/opened', :to => "notification_statuses#opened"
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.9.0"
2
+ VERSION = "0.10.0"
3
3
  end
@@ -15,7 +15,7 @@ describe Notifiable::NotificationStatusesController do
15
15
  end
16
16
 
17
17
  it "marks a status as opened" do
18
- post :opened, {:uuid => notification_status.uuid, :user_email => user1.email}
18
+ put :opened, {:uuid => notification_status.uuid, :user_email => user1.email}
19
19
 
20
20
  expect(response).to be_success
21
21
 
@@ -189163,3 +189163,1793 @@ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
189163
189163
   (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189164
189164
   (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189165
189165
   (0.4ms) rollback transaction
189166
+  (0.3ms) begin transaction
189167
+  (0.0ms) SAVEPOINT active_record_1
189168
+ SQL (4.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189170
+  (0.0ms) SAVEPOINT active_record_1
189171
+ SQL (0.7ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189173
+  (0.0ms) SAVEPOINT active_record_1
189174
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
189175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189176
+  (0.1ms) SAVEPOINT active_record_1
189177
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189179
+  (0.1ms) SAVEPOINT active_record_1
189180
+ Notifiable::DeviceToken Exists (0.4ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
189181
+ SQL (1.0ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 1]]
189182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189183
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
189184
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
189185
+  (0.0ms) SAVEPOINT active_record_1
189186
+ SQL (0.4ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "status", "uuid") VALUES (?, ?, ?) [["device_token_id", 1], ["status", 200], ["uuid", "4b76cc4e-aa39-11e3-881f-665977498703"]]
189187
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189188
+ Notifiable::Notification Load (0.4ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
189189
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
189190
+  (0.0ms) DELETE FROM "users";
189191
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189192
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189193
+  (0.0ms) DELETE FROM "notifiable_apps";
189194
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189195
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189196
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189197
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189198
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189199
+  (0.1ms) DELETE FROM "notifiable_notifications";
189200
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189201
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189202
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189203
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189204
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189205
+  (0.5ms) rollback transaction
189206
+  (0.0ms) begin transaction
189207
+  (0.0ms) SAVEPOINT active_record_1
189208
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189210
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
189211
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
189212
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
189213
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
189214
+  (0.1ms) DELETE FROM "users";
189215
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189216
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189217
+  (0.0ms) DELETE FROM "notifiable_apps";
189218
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189219
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189220
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
189221
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189222
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189223
+  (0.0ms) DELETE FROM "notifiable_notifications";
189224
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189225
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189226
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189227
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189228
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189229
+  (0.4ms) rollback transaction
189230
+  (0.1ms) begin transaction
189231
+  (0.0ms) SAVEPOINT active_record_1
189232
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189234
+  (0.0ms) SAVEPOINT active_record_1
189235
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
189236
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD2"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189238
+  (0.0ms) SAVEPOINT active_record_1
189239
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
189240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189241
+ Processing by Notifiable::DeviceTokensController#create as JSON
189242
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-3@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
189243
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
189244
+ Unpermitted parameters: user_email, device_token
189245
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
189246
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
189247
+  (0.0ms) SAVEPOINT active_record_1
189248
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189249
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
189250
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189252
+ Completed 200 OK in 10ms (ActiveRecord: 0.8ms)
189253
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
189254
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
189255
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189256
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189257
+  (0.0ms) SAVEPOINT active_record_1
189258
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189260
+  (0.0ms) DELETE FROM "users";
189261
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189262
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
189263
+  (0.0ms) DELETE FROM "notifiable_apps";
189264
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189265
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189266
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189267
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189268
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189269
+  (0.1ms) DELETE FROM "notifiable_notifications";
189270
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189271
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189272
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189273
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189274
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189275
+  (0.4ms) rollback transaction
189276
+  (0.0ms) begin transaction
189277
+  (0.0ms) SAVEPOINT active_record_1
189278
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
189279
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189280
+  (0.0ms) SAVEPOINT active_record_1
189281
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189282
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189283
+  (0.0ms) SAVEPOINT active_record_1
189284
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
189285
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 1]]
189286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189287
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189288
+  (0.0ms) SAVEPOINT active_record_1
189289
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
189290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189291
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
189292
+ Parameters: {"token"=>"ABCD3", "user_email"=>"person-5@example.com", "device_token"=>{"token"=>"ABCD3"}}
189293
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
189294
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189295
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
189296
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
189297
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
189298
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
189299
+  (0.1ms) DELETE FROM "users";
189300
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189301
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189302
+  (0.0ms) DELETE FROM "notifiable_apps";
189303
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189304
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189305
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189306
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189307
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189308
+  (0.1ms) DELETE FROM "notifiable_notifications";
189309
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189310
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189311
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
189312
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189313
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189314
+  (0.5ms) rollback transaction
189315
+  (0.1ms) begin transaction
189316
+  (0.0ms) SAVEPOINT active_record_1
189317
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
189318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189319
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
189320
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-6@example.com", "device_token"=>{"token"=>"ZXY987"}}
189321
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
189322
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189323
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
189324
+  (0.0ms) SAVEPOINT active_record_1
189325
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
189326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189327
+  (0.0ms) SAVEPOINT active_record_1
189328
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189330
+  (0.0ms) SAVEPOINT active_record_1
189331
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
189332
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 2]]
189333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189334
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189335
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
189336
+  (0.0ms) DELETE FROM "users";
189337
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189338
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189339
+  (0.0ms) DELETE FROM "notifiable_apps";
189340
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189341
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189342
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189343
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189344
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189345
+  (0.1ms) DELETE FROM "notifiable_notifications";
189346
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189347
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189348
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
189349
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189350
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189351
+  (0.4ms) rollback transaction
189352
+  (0.1ms) begin transaction
189353
+  (0.1ms) SAVEPOINT active_record_1
189354
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
189355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189356
+  (0.0ms) SAVEPOINT active_record_1
189357
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189359
+ Processing by Notifiable::DeviceTokensController#create as JSON
189360
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-8@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
189361
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
189362
+ Unpermitted parameters: user_email, device_token
189363
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
189364
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
189365
+  (0.0ms) SAVEPOINT active_record_1
189366
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189367
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
189368
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 1]]
189369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189370
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
189371
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
189372
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
189373
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189374
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189375
+  (0.1ms) DELETE FROM "users";
189376
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189377
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189378
+  (0.0ms) DELETE FROM "notifiable_apps";
189379
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189380
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189381
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189382
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189383
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189384
+  (0.1ms) DELETE FROM "notifiable_notifications";
189385
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189386
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189387
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
189388
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189389
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189390
+  (0.5ms) rollback transaction
189391
+  (0.1ms) begin transaction
189392
+  (0.0ms) SAVEPOINT active_record_1
189393
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
189394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189395
+ Processing by Notifiable::DeviceTokensController#create as JSON
189396
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-9@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
189397
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
189398
+ Unpermitted parameters: user_email, device_token
189399
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
189400
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
189401
+  (0.0ms) SAVEPOINT active_record_1
189402
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
189403
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
189404
+ Completed 422 Unprocessable Entity in 11ms (Views: 0.2ms | ActiveRecord: 0.4ms)
189405
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
189406
+  (0.3ms) DELETE FROM "users";
189407
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189408
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
189409
+  (0.1ms) DELETE FROM "notifiable_apps";
189410
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189411
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189412
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
189413
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189414
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189415
+  (0.1ms) DELETE FROM "notifiable_notifications";
189416
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189417
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189418
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
189419
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189420
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189421
+  (0.4ms) rollback transaction
189422
+  (0.1ms) begin transaction
189423
+  (0.0ms) SAVEPOINT active_record_1
189424
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
189425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189426
+  (0.0ms) SAVEPOINT active_record_1
189427
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189429
+  (0.0ms) SAVEPOINT active_record_1
189430
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
189431
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 1]]
189432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189433
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189434
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
189435
+ Parameters: {"token"=>"ABCD5", "device_token"=>{"token"=>"ABCD5"}}
189436
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
189437
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
189438
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
189439
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
189440
+  (0.1ms) DELETE FROM "users";
189441
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189442
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189443
+  (0.0ms) DELETE FROM "notifiable_apps";
189444
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189445
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189446
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189447
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189448
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189449
+  (0.1ms) DELETE FROM "notifiable_notifications";
189450
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189451
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189452
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
189453
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189454
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189455
+  (0.5ms) rollback transaction
189456
+  (0.1ms) begin transaction
189457
+  (0.0ms) SAVEPOINT active_record_1
189458
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
189459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189460
+  (0.0ms) SAVEPOINT active_record_1
189461
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189463
+  (0.0ms) SAVEPOINT active_record_1
189464
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
189465
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 1]]
189466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189467
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189468
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
189469
+ Parameters: {"token"=>"ABCD6", "user_email"=>"person-11@example.com", "device_token"=>{"token"=>"ABCD6"}}
189470
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
189471
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189472
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
189473
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
189474
+  (0.0ms) SAVEPOINT active_record_1
189475
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
189476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189477
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
189478
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
189479
+  (0.0ms) DELETE FROM "users";
189480
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189481
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189482
+  (0.0ms) DELETE FROM "notifiable_apps";
189483
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189484
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189485
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189486
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189487
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189488
+  (0.1ms) DELETE FROM "notifiable_notifications";
189489
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189490
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189491
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
189492
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189493
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189494
+  (0.5ms) rollback transaction
189495
+  (0.0ms) begin transaction
189496
+  (0.0ms) SAVEPOINT active_record_1
189497
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
189498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189499
+  (0.0ms) SAVEPOINT active_record_1
189500
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189502
+ Processing by Notifiable::DeviceTokensController#create as JSON
189503
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-12@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
189504
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
189505
+ Unpermitted parameters: user_email, device_token
189506
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
189507
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
189508
+  (0.0ms) SAVEPOINT active_record_1
189509
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189510
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
189511
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 1]]
189512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189513
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
189514
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
189515
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
189516
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189517
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189518
+  (0.1ms) DELETE FROM "users";
189519
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189520
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189521
+  (0.0ms) DELETE FROM "notifiable_apps";
189522
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189523
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189524
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189525
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189526
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189527
+  (0.1ms) DELETE FROM "notifiable_notifications";
189528
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189529
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189530
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189531
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189532
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189533
+  (0.5ms) rollback transaction
189534
+  (0.1ms) begin transaction
189535
+  (0.0ms) SAVEPOINT active_record_1
189536
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189538
+ Processing by Notifiable::DeviceTokensController#create as JSON
189539
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
189540
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
189541
+ Unpermitted parameters: device_token
189542
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
189543
+  (0.0ms) SAVEPOINT active_record_1
189544
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189545
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
189546
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189548
+ Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
189549
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
189550
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189551
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189552
+  (0.0ms) SELECT COUNT(*) FROM "users"
189553
+  (0.1ms) DELETE FROM "users";
189554
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189555
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189556
+  (0.0ms) DELETE FROM "notifiable_apps";
189557
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189558
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189559
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189560
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189561
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189562
+  (0.1ms) DELETE FROM "notifiable_notifications";
189563
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189564
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189565
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
189566
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189567
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189568
+  (0.5ms) rollback transaction
189569
+  (0.1ms) begin transaction
189570
+  (0.0ms) SAVEPOINT active_record_1
189571
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189573
+  (0.0ms) SAVEPOINT active_record_1
189574
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189576
+  (0.0ms) SAVEPOINT active_record_1
189577
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
189578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189579
+  (0.0ms) SAVEPOINT active_record_1
189580
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
189581
+ SQL (0.1ms) DELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ? [["id", 1]]
189582
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
189583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189584
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
189585
+  (0.1ms) DELETE FROM "users";
189586
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189587
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189588
+  (0.0ms) DELETE FROM "notifiable_apps";
189589
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189590
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189591
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
189592
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189593
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189594
+  (0.0ms) DELETE FROM "notifiable_notifications";
189595
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189596
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189597
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189598
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189599
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189600
+  (0.5ms) rollback transaction
189601
+  (0.1ms) begin transaction
189602
+  (0.0ms) SAVEPOINT active_record_1
189603
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189605
+  (0.0ms) SAVEPOINT active_record_1
189606
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189608
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
189609
+  (0.1ms) DELETE FROM "users";
189610
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189611
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189612
+  (0.0ms) DELETE FROM "notifiable_apps";
189613
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189614
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189615
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
189616
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189617
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189618
+  (0.0ms) DELETE FROM "notifiable_notifications";
189619
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189620
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189621
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189622
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189623
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189624
+  (0.4ms) rollback transaction
189625
+  (0.1ms) begin transaction
189626
+  (0.0ms) SAVEPOINT active_record_1
189627
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189629
+  (0.0ms) SAVEPOINT active_record_1
189630
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189632
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
189633
+  (0.1ms) DELETE FROM "users";
189634
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189635
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189636
+  (0.0ms) DELETE FROM "notifiable_apps";
189637
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189638
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189639
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
189640
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189641
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189642
+  (0.0ms) DELETE FROM "notifiable_notifications";
189643
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189644
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189645
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189646
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189647
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189648
+  (0.4ms) rollback transaction
189649
+  (0.1ms) begin transaction
189650
+  (0.0ms) SAVEPOINT active_record_1
189651
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189653
+  (0.0ms) SAVEPOINT active_record_1
189654
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
189655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189656
+  (0.0ms) SAVEPOINT active_record_1
189657
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189659
+  (0.0ms) SAVEPOINT active_record_1
189660
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
189661
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", :sms], ["token", "ABCD7"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 1]]
189662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189663
+  (0.1ms) SAVEPOINT active_record_1
189664
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189666
+  (0.0ms) SAVEPOINT active_record_1
189667
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189669
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
189670
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
189671
+  (0.0ms) DELETE FROM "users";
189672
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189673
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189674
+  (0.0ms) DELETE FROM "notifiable_apps";
189675
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189676
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189677
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189678
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189679
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189680
+  (0.0ms) DELETE FROM "notifiable_notifications";
189681
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189682
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189683
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
189684
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189685
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189686
+  (0.5ms) rollback transaction
189687
+  (0.1ms) begin transaction
189688
+  (0.0ms) SAVEPOINT active_record_1
189689
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189691
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
189692
+  (0.0ms) SAVEPOINT active_record_1
189693
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189695
+  (0.0ms) SAVEPOINT active_record_1
189696
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189698
+  (0.0ms) SAVEPOINT active_record_1
189699
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
189700
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189701
+  (0.0ms) SAVEPOINT active_record_1
189702
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189704
+  (0.0ms) SAVEPOINT active_record_1
189705
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
189706
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 1]]
189707
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189708
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
189709
+  (0.0ms) SAVEPOINT active_record_1
189710
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189712
+  (0.0ms) SAVEPOINT active_record_1
189713
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189715
+  (0.0ms) SAVEPOINT active_record_1
189716
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
189717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189718
+  (0.0ms) SAVEPOINT active_record_1
189719
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189721
+  (0.0ms) SAVEPOINT active_record_1
189722
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
189723
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 2]]
189724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189725
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
189726
+  (0.0ms) SAVEPOINT active_record_1
189727
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200], ["uuid", "4b9af79a-aa39-11e3-8880-90a6c4789f3d"]]
189728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189729
+  (0.0ms) SAVEPOINT active_record_1
189730
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 2], ["notification_id", 2], ["status", 200], ["uuid", "4b9c0356-aa39-11e3-8f9e-988cf26293dd"]]
189731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189732
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
189733
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
189734
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
189735
+  (0.1ms) SAVEPOINT active_record_1
189736
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
189737
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["params", nil]]
189738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189739
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 2]]
189740
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 2]]
189741
+  (0.0ms) SAVEPOINT active_record_1
189742
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 4]]
189743
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["params", nil]]
189744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189745
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
189746
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
189747
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
189748
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
189749
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
189750
+ Notifiable::Notification Load (0.0ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
189751
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
189752
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
189753
+  (0.1ms) DELETE FROM "users";
189754
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189755
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189756
+  (0.0ms) DELETE FROM "notifiable_apps";
189757
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189758
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189759
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189760
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189761
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189762
+  (0.0ms) DELETE FROM "notifiable_notifications";
189763
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189764
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189765
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189766
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189767
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189768
+  (0.5ms) rollback transaction
189769
+  (0.1ms) begin transaction
189770
+  (0.0ms) SAVEPOINT active_record_1
189771
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189773
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
189774
+  (0.0ms) SAVEPOINT active_record_1
189775
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189777
+  (0.0ms) SAVEPOINT active_record_1
189778
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189780
+  (0.0ms) SAVEPOINT active_record_1
189781
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
189782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189783
+  (0.0ms) SAVEPOINT active_record_1
189784
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189786
+  (0.0ms) SAVEPOINT active_record_1
189787
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
189788
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 1]]
189789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189790
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
189791
+  (0.0ms) SAVEPOINT active_record_1
189792
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
189793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189794
+  (0.1ms) SAVEPOINT active_record_1
189795
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00]]
189796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189797
+  (0.0ms) SAVEPOINT active_record_1
189798
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
189799
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["user_id", 2]]
189800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189801
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
189802
+  (0.0ms) SAVEPOINT active_record_1
189803
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200], ["uuid", "4ba02dd2-aa39-11e3-8642-a3c24d01e03f"]]
189804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189805
+  (0.0ms) SAVEPOINT active_record_1
189806
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 2], ["notification_id", 1], ["status", 200], ["uuid", "4ba0d688-aa39-11e3-82dd-4766024ba0c2"]]
189807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189808
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
189809
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
189810
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
189811
+  (0.0ms) SAVEPOINT active_record_1
189812
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
189813
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Wed, 12 Mar 2014 22:54:40 UTC +00:00], ["params", nil]]
189814
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189815
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
189816
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
189817
+ Notifiable::Notification Load (0.0ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
189818
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
189819
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
189820
+ Notifiable::Notification Load (0.0ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
189821
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
189822
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
189823
+  (0.0ms) DELETE FROM "users";
189824
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189825
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189826
+  (0.0ms) DELETE FROM "notifiable_apps";
189827
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189828
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189829
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189830
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189831
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189832
+  (0.0ms) DELETE FROM "notifiable_notifications";
189833
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189834
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189835
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189836
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189837
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189838
+  (0.5ms) rollback transaction
189839
+  (0.1ms) begin transaction
189840
+  (0.0ms) SAVEPOINT active_record_1
189841
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
189842
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189843
+  (0.0ms) SAVEPOINT active_record_1
189844
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00]]
189845
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189846
+  (0.1ms) SAVEPOINT active_record_1
189847
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
189848
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["user_id", 1]]
189849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189850
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189851
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189852
+  (0.0ms) SAVEPOINT active_record_1
189853
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["params", nil], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00]]
189854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189855
+  (0.0ms) SAVEPOINT active_record_1
189856
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0], ["uuid", "4b5a8732-aa39-11e3-951a-6421ffb45b9a"]]
189857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189858
+ Processing by Notifiable::NotificationStatusesController#opened as JSON
189859
+ Parameters: {"uuid"=>"4b5a8732-aa39-11e3-951a-6421ffb45b9a", "user_email"=>"person-18@example.com", "notification_status"=>{"uuid"=>"4b5a8732-aa39-11e3-951a-6421ffb45b9a"}}
189860
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
189861
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."uuid" = '4b5a8732-aa39-11e3-951a-6421ffb45b9a' LIMIT 1
189862
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
189863
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
189864
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
189865
+  (0.0ms) SAVEPOINT active_record_1
189866
+ SQL (0.1ms) UPDATE "notifiable_notification_statuses" SET "status" = ?, "uuid" = ? WHERE "notifiable_notification_statuses"."id" = 1 [["status", -1], ["uuid", nil]]
189867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189868
+ Notifiable::Notification Load (0.0ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
189869
+  (0.0ms) SAVEPOINT active_record_1
189870
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["params", nil]]
189871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189872
+ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
189873
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
189874
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
189875
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications"
189876
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
189877
+  (0.1ms) DELETE FROM "users";
189878
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189879
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189880
+  (0.0ms) DELETE FROM "notifiable_apps";
189881
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189882
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189883
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189884
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189885
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189886
+  (0.0ms) DELETE FROM "notifiable_notifications";
189887
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189888
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189889
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189890
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189891
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189892
+  (0.5ms) rollback transaction
189893
+  (0.1ms) begin transaction
189894
+  (0.1ms) SAVEPOINT active_record_1
189895
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
189896
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189897
+  (0.1ms) SAVEPOINT active_record_1
189898
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00]]
189899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189900
+  (0.0ms) SAVEPOINT active_record_1
189901
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
189902
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["user_id", 1]]
189903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189904
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
189905
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189906
+  (0.1ms) SAVEPOINT active_record_1
189907
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["params", nil], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00]]
189908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189909
+  (0.0ms) SAVEPOINT active_record_1
189910
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0], ["uuid", "4b5a8732-aa39-11e3-951a-6421ffb45b9a"]]
189911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189912
+  (0.0ms) SAVEPOINT active_record_1
189913
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
189914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189915
+ Processing by Notifiable::NotificationStatusesController#opened as JSON
189916
+ Parameters: {"uuid"=>"4b5a8732-aa39-11e3-951a-6421ffb45b9a", "user_email"=>"person-20@example.com", "notification_status"=>{"uuid"=>"4b5a8732-aa39-11e3-951a-6421ffb45b9a"}}
189917
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
189918
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."uuid" = '4b5a8732-aa39-11e3-951a-6421ffb45b9a' LIMIT 1
189919
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
189920
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
189921
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
189922
+ Filter chain halted as :check_authorisation! rendered or redirected
189923
+ Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)
189924
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
189925
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
189926
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
189927
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
189928
+  (0.1ms) DELETE FROM "users";
189929
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189930
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189931
+  (0.0ms) DELETE FROM "notifiable_apps";
189932
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189933
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189934
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189935
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189936
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189937
+  (0.0ms) DELETE FROM "notifiable_notifications";
189938
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189939
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189940
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
189941
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189942
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189943
+  (0.5ms) rollback transaction
189944
+  (0.1ms) begin transaction
189945
+  (0.0ms) SAVEPOINT active_record_1
189946
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
189947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189948
+  (0.0ms) SAVEPOINT active_record_1
189949
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00]]
189950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189951
+  (0.0ms) SAVEPOINT active_record_1
189952
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
189953
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD14"], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["user_id", 1]]
189954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189955
+  (0.0ms) SAVEPOINT active_record_1
189956
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["params", nil], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00]]
189957
+  (0.1ms) RELEASE SAVEPOINT active_record_1
189958
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
189959
+  (0.0ms) DELETE FROM "users";
189960
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189961
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
189962
+  (0.0ms) DELETE FROM "notifiable_apps";
189963
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189964
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
189965
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
189966
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189967
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
189968
+  (0.0ms) DELETE FROM "notifiable_notifications";
189969
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189970
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
189971
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
189972
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
189973
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
189974
+  (0.4ms) rollback transaction
189975
+  (0.0ms) begin transaction
189976
+  (0.0ms) SAVEPOINT active_record_1
189977
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
189978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189979
+  (0.0ms) SAVEPOINT active_record_1
189980
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00]]
189981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189982
+  (0.0ms) SAVEPOINT active_record_1
189983
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
189984
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD15"], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["user_id", 1]]
189985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189986
+  (0.0ms) SAVEPOINT active_record_1
189987
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["params", nil], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00]]
189988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189989
+  (0.0ms) SAVEPOINT active_record_1
189990
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0], ["uuid", "4babccd2-aa39-11e3-89b8-7186e523d9cb"]]
189991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189992
+ Notifiable::Notification Load (0.2ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
189993
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
189994
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
189995
+  (0.0ms) SAVEPOINT active_record_1
189996
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
189997
+ SQL (0.2ms) 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", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["params", nil]]
189998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
189999
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190000
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
190001
+  (0.0ms) DELETE FROM "users";
190002
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190003
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190004
+  (0.0ms) DELETE FROM "notifiable_apps";
190005
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190006
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190007
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190008
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190009
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190010
+  (0.0ms) DELETE FROM "notifiable_notifications";
190011
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190012
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190013
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190014
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190015
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190016
+  (0.5ms) rollback transaction
190017
+  (0.1ms) begin transaction
190018
+  (0.0ms) SAVEPOINT active_record_1
190019
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
190020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190021
+  (0.0ms) SAVEPOINT active_record_1
190022
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00]]
190023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190024
+  (0.0ms) SAVEPOINT active_record_1
190025
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
190026
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD16"], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["user_id", 1]]
190027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190028
+  (0.0ms) SAVEPOINT active_record_1
190029
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["params", nil], ["updated_at", Wed, 12 Mar 2014 22:54:41 UTC +00:00]]
190030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190031
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190032
+  (0.0ms) SAVEPOINT active_record_1
190033
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0], ["uuid", "4bae42c8-aa39-11e3-9dd8-09128b448b9c"]]
190034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190035
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
190036
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
190037
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
190038
+  (0.0ms) SAVEPOINT active_record_1
190039
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190040
+ SQL (0.1ms) 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", Wed, 12 Mar 2014 22:54:41 UTC +00:00], ["params", nil]]
190041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190042
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190043
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
190044
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
190045
+  (0.0ms) DELETE FROM "users";
190046
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190047
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190048
+  (0.0ms) DELETE FROM "notifiable_apps";
190049
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190050
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190051
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190052
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190053
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190054
+  (0.0ms) DELETE FROM "notifiable_notifications";
190055
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190056
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190057
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190058
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190059
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190060
+  (0.5ms) rollback transaction
190061
+  (0.3ms) begin transaction
190062
+  (0.1ms) SAVEPOINT active_record_1
190063
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
190064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190065
+  (0.0ms) SAVEPOINT active_record_1
190066
+ SQL (3.8ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190067
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190068
+  (0.1ms) SAVEPOINT active_record_1
190069
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
190070
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190072
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190073
+ Notifiable::App Load (0.2ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190074
+  (0.0ms) SAVEPOINT active_record_1
190075
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190077
+  (0.1ms) SAVEPOINT active_record_1
190078
+ SQL (0.2ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0], ["uuid", "41151b64-aa9a-11e3-93a5-75a0a504b835"]]
190079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190080
+ Processing by Notifiable::NotificationStatusesController#opened as JSON
190081
+ Parameters: {"uuid"=>"41151b64-aa9a-11e3-93a5-75a0a504b835", "user_email"=>"person-1@example.com", "notification_status"=>{"uuid"=>"41151b64-aa9a-11e3-93a5-75a0a504b835"}}
190082
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
190083
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."uuid" = '41151b64-aa9a-11e3-93a5-75a0a504b835' LIMIT 1
190084
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
190085
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
190086
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
190087
+  (0.0ms) SAVEPOINT active_record_1
190088
+ SQL (0.1ms) UPDATE "notifiable_notification_statuses" SET "status" = ?, "uuid" = ? WHERE "notifiable_notification_statuses"."id" = 1 [["status", -1], ["uuid", nil]]
190089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190090
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
190091
+  (0.0ms) SAVEPOINT active_record_1
190092
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil]]
190093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190094
+ Completed 200 OK in 9ms (ActiveRecord: 1.0ms)
190095
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190096
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
190097
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
190098
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
190099
+  (0.0ms) DELETE FROM "users";
190100
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190101
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190102
+  (0.0ms) DELETE FROM "notifiable_apps";
190103
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190104
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190105
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190106
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190107
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190108
+  (0.0ms) DELETE FROM "notifiable_notifications";
190109
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190110
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190111
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190112
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190113
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190114
+  (0.4ms) rollback transaction
190115
+  (0.0ms) begin transaction
190116
+  (0.0ms) SAVEPOINT active_record_1
190117
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
190118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190119
+  (0.0ms) SAVEPOINT active_record_1
190120
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190122
+  (0.0ms) SAVEPOINT active_record_1
190123
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
190124
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190126
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190127
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190128
+  (0.1ms) SAVEPOINT active_record_1
190129
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190131
+  (0.0ms) SAVEPOINT active_record_1
190132
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0], ["uuid", "41151b64-aa9a-11e3-93a5-75a0a504b835"]]
190133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190134
+  (0.0ms) SAVEPOINT active_record_1
190135
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
190136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190137
+ Processing by Notifiable::NotificationStatusesController#opened as JSON
190138
+ Parameters: {"uuid"=>"41151b64-aa9a-11e3-93a5-75a0a504b835", "user_email"=>"person-3@example.com", "notification_status"=>{"uuid"=>"41151b64-aa9a-11e3-93a5-75a0a504b835"}}
190139
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
190140
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."uuid" = '41151b64-aa9a-11e3-93a5-75a0a504b835' LIMIT 1
190141
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
190142
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
190143
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
190144
+ Filter chain halted as :check_authorisation! rendered or redirected
190145
+ Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.3ms)
190146
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190147
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
190148
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
190149
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
190150
+  (0.1ms) DELETE FROM "users";
190151
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190152
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
190153
+  (0.1ms) DELETE FROM "notifiable_apps";
190154
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190155
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190156
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190157
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190158
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190159
+  (0.0ms) DELETE FROM "notifiable_notifications";
190160
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190161
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190162
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190163
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190164
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190165
+  (0.5ms) rollback transaction
190166
+  (0.1ms) begin transaction
190167
+  (0.1ms) SAVEPOINT active_record_1
190168
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190170
+  (0.1ms) SAVEPOINT active_record_1
190171
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190173
+  (0.0ms) SAVEPOINT active_record_1
190174
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
190175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190176
+  (0.1ms) SAVEPOINT active_record_1
190177
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190179
+  (0.0ms) SAVEPOINT active_record_1
190180
+ Notifiable::DeviceToken Exists (1.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
190181
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190183
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
190184
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190185
+  (0.0ms) SAVEPOINT active_record_1
190186
+ SQL (0.2ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "status", "uuid") VALUES (?, ?, ?) [["device_token_id", 1], ["status", 200], ["uuid", "413eda62-aa9a-11e3-9cb5-ce5aa42e7c84"]]
190187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190188
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
190189
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190190
+  (0.0ms) DELETE FROM "users";
190191
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190192
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190193
+  (0.1ms) DELETE FROM "notifiable_apps";
190194
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190195
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190196
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
190197
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190198
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190199
+  (0.1ms) DELETE FROM "notifiable_notifications";
190200
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190201
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190202
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
190203
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190204
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190205
+  (0.4ms) rollback transaction
190206
+  (0.1ms) begin transaction
190207
+  (0.0ms) SAVEPOINT active_record_1
190208
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190210
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
190211
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
190212
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
190213
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190214
+  (0.1ms) DELETE FROM "users";
190215
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190216
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190217
+  (0.0ms) DELETE FROM "notifiable_apps";
190218
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190219
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190220
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
190221
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190222
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190223
+  (0.1ms) DELETE FROM "notifiable_notifications";
190224
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190225
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190226
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
190227
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190228
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190229
+  (0.4ms) rollback transaction
190230
+  (0.0ms) begin transaction
190231
+  (0.0ms) SAVEPOINT active_record_1
190232
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190234
+  (0.0ms) SAVEPOINT active_record_1
190235
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
190236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190237
+  (0.1ms) SAVEPOINT active_record_1
190238
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190240
+  (0.0ms) SAVEPOINT active_record_1
190241
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
190242
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :sms], ["token", "ABCD4"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190244
+  (0.0ms) SAVEPOINT active_record_1
190245
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190247
+  (0.0ms) SAVEPOINT active_record_1
190248
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190250
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
190251
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190252
+  (0.0ms) DELETE FROM "users";
190253
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190254
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190255
+  (0.0ms) DELETE FROM "notifiable_apps";
190256
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190257
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190258
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190259
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190260
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190261
+  (0.0ms) DELETE FROM "notifiable_notifications";
190262
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190263
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190264
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
190265
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190266
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190267
+  (0.4ms) rollback transaction
190268
+  (0.0ms) begin transaction
190269
+  (0.0ms) SAVEPOINT active_record_1
190270
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190272
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
190273
+  (0.0ms) SAVEPOINT active_record_1
190274
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190276
+  (0.0ms) SAVEPOINT active_record_1
190277
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190279
+  (0.0ms) SAVEPOINT active_record_1
190280
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
190281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190282
+  (0.0ms) SAVEPOINT active_record_1
190283
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190285
+  (0.0ms) SAVEPOINT active_record_1
190286
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
190287
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190289
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190290
+  (0.0ms) SAVEPOINT active_record_1
190291
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190293
+  (0.0ms) SAVEPOINT active_record_1
190294
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190296
+  (0.0ms) SAVEPOINT active_record_1
190297
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
190298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190299
+  (0.0ms) SAVEPOINT active_record_1
190300
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190302
+  (0.0ms) SAVEPOINT active_record_1
190303
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
190304
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 2]]
190305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190306
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
190307
+  (0.0ms) SAVEPOINT active_record_1
190308
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200], ["uuid", "4144265c-aa9a-11e3-8c0c-80a8b3f855d0"]]
190309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190310
+  (0.0ms) SAVEPOINT active_record_1
190311
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 2], ["notification_id", 2], ["status", 200], ["uuid", "41452fd4-aa9a-11e3-9307-15525eab537d"]]
190312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190313
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
190314
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
190315
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
190316
+  (0.0ms) SAVEPOINT active_record_1
190317
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
190318
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil]]
190319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190320
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 2]]
190321
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 2]]
190322
+  (0.0ms) SAVEPOINT active_record_1
190323
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 4]]
190324
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil]]
190325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190326
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190327
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
190328
+ Notifiable::Notification Load (0.0ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
190329
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
190330
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190331
+ Notifiable::Notification Load (0.0ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
190332
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
190333
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
190334
+  (0.0ms) DELETE FROM "users";
190335
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190336
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190337
+  (0.0ms) DELETE FROM "notifiable_apps";
190338
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190339
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190340
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190341
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190342
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190343
+  (0.1ms) DELETE FROM "notifiable_notifications";
190344
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190345
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190346
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190347
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190348
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190349
+  (0.4ms) rollback transaction
190350
+  (0.1ms) begin transaction
190351
+  (0.0ms) SAVEPOINT active_record_1
190352
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190354
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
190355
+  (0.0ms) SAVEPOINT active_record_1
190356
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190358
+  (0.0ms) SAVEPOINT active_record_1
190359
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190361
+  (0.0ms) SAVEPOINT active_record_1
190362
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
190363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190364
+  (0.0ms) SAVEPOINT active_record_1
190365
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190367
+  (0.0ms) SAVEPOINT active_record_1
190368
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
190369
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190371
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190372
+  (0.0ms) SAVEPOINT active_record_1
190373
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
190374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190375
+  (0.0ms) SAVEPOINT active_record_1
190376
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190378
+  (0.0ms) SAVEPOINT active_record_1
190379
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
190380
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 2]]
190381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190382
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
190383
+  (0.0ms) SAVEPOINT active_record_1
190384
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200], ["uuid", "4149d0b6-aa9a-11e3-8a75-d41f29527a60"]]
190385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190386
+  (0.0ms) SAVEPOINT active_record_1
190387
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 2], ["notification_id", 1], ["status", 200], ["uuid", "414a78f4-aa9a-11e3-84a9-af7f13f76f2f"]]
190388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190389
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
190390
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
190391
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
190392
+  (0.0ms) SAVEPOINT active_record_1
190393
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
190394
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil]]
190395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190396
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190397
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
190398
+ Notifiable::Notification Load (0.0ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
190399
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
190400
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190401
+ Notifiable::Notification Load (0.0ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
190402
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
190403
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
190404
+  (0.0ms) DELETE FROM "users";
190405
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190406
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190407
+  (0.0ms) DELETE FROM "notifiable_apps";
190408
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190409
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190410
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190411
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190412
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190413
+  (0.1ms) DELETE FROM "notifiable_notifications";
190414
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190415
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190416
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190417
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190418
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190419
+  (0.5ms) rollback transaction
190420
+  (0.1ms) begin transaction
190421
+  (0.1ms) SAVEPOINT active_record_1
190422
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
190423
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190424
+  (0.0ms) SAVEPOINT active_record_1
190425
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190427
+  (0.0ms) SAVEPOINT active_record_1
190428
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
190429
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD9"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190431
+  (0.0ms) SAVEPOINT active_record_1
190432
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190434
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190435
+  (0.0ms) DELETE FROM "users";
190436
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190437
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190438
+  (0.0ms) DELETE FROM "notifiable_apps";
190439
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190440
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190441
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190442
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190443
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190444
+  (0.0ms) DELETE FROM "notifiable_notifications";
190445
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190446
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190447
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
190448
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190449
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190450
+  (0.4ms) rollback transaction
190451
+  (0.1ms) begin transaction
190452
+  (0.0ms) SAVEPOINT active_record_1
190453
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
190454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190455
+  (0.0ms) SAVEPOINT active_record_1
190456
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190458
+  (0.1ms) SAVEPOINT active_record_1
190459
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
190460
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD10"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190462
+  (0.0ms) SAVEPOINT active_record_1
190463
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190465
+  (0.0ms) SAVEPOINT active_record_1
190466
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0], ["uuid", "414ee3b2-aa9a-11e3-8d7d-84e8e97c5ebb"]]
190467
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190468
+ Notifiable::Notification Load (0.2ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
190469
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
190470
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
190471
+  (0.1ms) SAVEPOINT active_record_1
190472
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190473
+ SQL (0.3ms) 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", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil]]
190474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190475
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190476
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
190477
+  (0.1ms) DELETE FROM "users";
190478
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190479
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
190480
+  (0.1ms) DELETE FROM "notifiable_apps";
190481
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190482
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190483
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190484
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190485
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190486
+  (0.1ms) DELETE FROM "notifiable_notifications";
190487
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190488
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190489
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190490
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190491
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190492
+  (14.3ms) rollback transaction
190493
+  (0.1ms) begin transaction
190494
+  (0.1ms) SAVEPOINT active_record_1
190495
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
190496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190497
+  (0.1ms) SAVEPOINT active_record_1
190498
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190500
+  (0.0ms) SAVEPOINT active_record_1
190501
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
190502
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD11"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190504
+  (0.0ms) SAVEPOINT active_record_1
190505
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190507
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190508
+  (0.0ms) SAVEPOINT active_record_1
190509
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status", "uuid") VALUES (?, ?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0], ["uuid", "41544de8-aa9a-11e3-986a-07c4db919302"]]
190510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190511
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
190512
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
190513
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
190514
+  (0.0ms) SAVEPOINT active_record_1
190515
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190516
+ SQL (0.1ms) 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", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["params", nil]]
190517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190518
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190519
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
190520
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1
190521
+  (0.0ms) DELETE FROM "users";
190522
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190523
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
190524
+  (0.1ms) DELETE FROM "notifiable_apps";
190525
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190526
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190527
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
190528
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190529
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190530
+  (0.1ms) DELETE FROM "notifiable_notifications";
190531
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190532
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190533
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
190534
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190535
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190536
+  (5.9ms) rollback transaction
190537
+  (0.1ms) begin transaction
190538
+  (0.0ms) SAVEPOINT active_record_1
190539
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
190540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190541
+  (0.1ms) SAVEPOINT active_record_1
190542
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190544
+  (0.0ms) SAVEPOINT active_record_1
190545
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
190546
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190548
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190549
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
190550
+ Parameters: {"token"=>"ABCD12", "user_email"=>"person-14@example.com", "device_token"=>{"token"=>"ABCD12"}}
190551
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
190552
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190553
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
190554
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
190555
+  (0.0ms) SAVEPOINT active_record_1
190556
+ SQL (0.3ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
190557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190558
+ Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
190559
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12'
190560
+  (0.1ms) DELETE FROM "users";
190561
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190562
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190563
+  (0.0ms) DELETE FROM "notifiable_apps";
190564
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190565
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190566
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190567
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190568
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190569
+  (0.1ms) DELETE FROM "notifiable_notifications";
190570
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190571
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190572
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190573
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190574
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190575
+  (0.4ms) rollback transaction
190576
+  (0.1ms) begin transaction
190577
+  (0.0ms) SAVEPOINT active_record_1
190578
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
190579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190580
+ Processing by Notifiable::DeviceTokensController#create as JSON
190581
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-15@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
190582
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
190583
+ Unpermitted parameters: user_email, device_token
190584
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
190585
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
190586
+  (0.0ms) SAVEPOINT active_record_1
190587
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
190588
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
190589
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
190590
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
190591
+  (0.3ms) DELETE FROM "users";
190592
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190593
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
190594
+  (0.1ms) DELETE FROM "notifiable_apps";
190595
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190596
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190597
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
190598
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190599
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190600
+  (0.1ms) DELETE FROM "notifiable_notifications";
190601
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190602
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190603
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190604
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190605
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190606
+  (0.4ms) rollback transaction
190607
+  (0.1ms) begin transaction
190608
+  (0.0ms) SAVEPOINT active_record_1
190609
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
190610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190611
+  (0.0ms) SAVEPOINT active_record_1
190612
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190614
+ Processing by Notifiable::DeviceTokensController#create as JSON
190615
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-16@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
190616
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
190617
+ Unpermitted parameters: user_email, device_token
190618
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
190619
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
190620
+  (0.1ms) SAVEPOINT active_record_1
190621
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190622
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
190623
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190625
+ Completed 200 OK in 6ms (ActiveRecord: 0.9ms)
190626
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
190627
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190628
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190629
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190630
+  (0.1ms) DELETE FROM "users";
190631
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190632
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190633
+  (0.0ms) DELETE FROM "notifiable_apps";
190634
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190635
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190636
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190637
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190638
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190639
+  (0.1ms) DELETE FROM "notifiable_notifications";
190640
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190641
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190642
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190643
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190644
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190645
+  (0.4ms) rollback transaction
190646
+  (0.0ms) begin transaction
190647
+  (0.0ms) SAVEPOINT active_record_1
190648
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
190649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190650
+  (0.0ms) SAVEPOINT active_record_1
190651
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190653
+  (0.0ms) SAVEPOINT active_record_1
190654
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
190655
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["user_id", 1]]
190656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190657
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190658
+  (0.0ms) SAVEPOINT active_record_1
190659
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
190660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190661
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
190662
+ Parameters: {"token"=>"ABCD13", "user_email"=>"person-18@example.com", "device_token"=>{"token"=>"ABCD13"}}
190663
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
190664
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190665
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
190666
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
190667
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
190668
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13'
190669
+  (0.1ms) DELETE FROM "users";
190670
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190671
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
190672
+  (0.0ms) DELETE FROM "notifiable_apps";
190673
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190674
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190675
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190676
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190677
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190678
+  (0.1ms) DELETE FROM "notifiable_notifications";
190679
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190680
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190681
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190682
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190683
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190684
+  (0.4ms) rollback transaction
190685
+  (0.1ms) begin transaction
190686
+  (0.0ms) SAVEPOINT active_record_1
190687
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190689
+ Processing by Notifiable::DeviceTokensController#create as JSON
190690
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
190691
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
190692
+ Unpermitted parameters: device_token
190693
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
190694
+  (0.0ms) SAVEPOINT active_record_1
190695
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190696
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
190697
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190699
+ Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
190700
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
190701
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190702
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190703
+  (0.0ms) SELECT COUNT(*) FROM "users"
190704
+  (0.1ms) DELETE FROM "users";
190705
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190706
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190707
+  (0.0ms) DELETE FROM "notifiable_apps";
190708
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190709
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190710
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
190711
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190712
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190713
+  (0.1ms) DELETE FROM "notifiable_notifications";
190714
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190715
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190716
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190717
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190718
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190719
+  (0.4ms) rollback transaction
190720
+  (0.1ms) begin transaction
190721
+  (0.0ms) SAVEPOINT active_record_1
190722
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190724
+  (0.0ms) SAVEPOINT active_record_1
190725
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
190726
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD14"], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190728
+  (0.0ms) SAVEPOINT active_record_1
190729
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
190730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190731
+ Processing by Notifiable::DeviceTokensController#create as JSON
190732
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-19@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
190733
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
190734
+ Unpermitted parameters: user_email, device_token
190735
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
190736
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
190737
+  (0.0ms) SAVEPOINT active_record_1
190738
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190739
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
190740
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190742
+ Completed 200 OK in 5ms (ActiveRecord: 0.6ms)
190743
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
190744
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190745
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190746
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190747
+  (0.0ms) SAVEPOINT active_record_1
190748
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:44 UTC +00:00]]
190749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190750
+  (0.1ms) DELETE FROM "users";
190751
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190752
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190753
+  (0.0ms) DELETE FROM "notifiable_apps";
190754
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190755
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190756
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190757
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190758
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190759
+  (0.1ms) DELETE FROM "notifiable_notifications";
190760
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190761
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190762
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
190763
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190764
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190765
+  (0.4ms) rollback transaction
190766
+  (0.1ms) begin transaction
190767
+  (0.1ms) SAVEPOINT active_record_1
190768
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
190769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190770
+  (0.0ms) SAVEPOINT active_record_1
190771
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00]]
190772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190773
+  (0.0ms) SAVEPOINT active_record_1
190774
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
190775
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["user_id", 1]]
190776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190777
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190778
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
190779
+ Parameters: {"token"=>"ABCD15", "device_token"=>{"token"=>"ABCD15"}}
190780
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
190781
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
190782
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
190783
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15'
190784
+  (0.1ms) DELETE FROM "users";
190785
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190786
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190787
+  (0.0ms) DELETE FROM "notifiable_apps";
190788
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190789
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190790
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190791
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190792
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190793
+  (0.1ms) DELETE FROM "notifiable_notifications";
190794
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190795
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190796
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190797
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190798
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190799
+  (0.4ms) rollback transaction
190800
+  (0.1ms) begin transaction
190801
+  (0.0ms) SAVEPOINT active_record_1
190802
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
190803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190804
+  (0.0ms) SAVEPOINT active_record_1
190805
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00]]
190806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190807
+ Processing by Notifiable::DeviceTokensController#create as JSON
190808
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-21@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
190809
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
190810
+ Unpermitted parameters: user_email, device_token
190811
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
190812
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
190813
+  (0.1ms) SAVEPOINT active_record_1
190814
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190815
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
190816
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["user_id", 1]]
190817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190818
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
190819
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
190820
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
190821
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190822
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
190823
+  (0.1ms) DELETE FROM "users";
190824
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190825
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
190826
+  (0.0ms) DELETE FROM "notifiable_apps";
190827
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190828
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190829
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190830
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190831
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190832
+  (0.1ms) DELETE FROM "notifiable_notifications";
190833
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190834
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190835
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190836
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190837
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190838
+  (0.8ms) rollback transaction
190839
+  (0.0ms) begin transaction
190840
+  (0.0ms) SAVEPOINT active_record_1
190841
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
190842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190843
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
190844
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-22@example.com", "device_token"=>{"token"=>"ZXY987"}}
190845
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
190846
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190847
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
190848
+  (0.0ms) SAVEPOINT active_record_1
190849
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
190850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190851
+  (0.0ms) SAVEPOINT active_record_1
190852
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00]]
190853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190854
+  (0.0ms) SAVEPOINT active_record_1
190855
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
190856
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["user_id", 2]]
190857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190858
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
190859
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16'
190860
+  (0.1ms) DELETE FROM "users";
190861
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190862
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190863
+  (0.0ms) DELETE FROM "notifiable_apps";
190864
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190865
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190866
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
190867
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190868
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190869
+  (0.1ms) DELETE FROM "notifiable_notifications";
190870
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190871
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190872
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190873
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190874
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190875
+  (0.4ms) rollback transaction
190876
+  (0.1ms) begin transaction
190877
+  (0.0ms) SAVEPOINT active_record_1
190878
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00]]
190879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190880
+  (0.0ms) SAVEPOINT active_record_1
190881
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00]]
190882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190883
+  (0.0ms) SAVEPOINT active_record_1
190884
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
190885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190886
+  (0.0ms) SAVEPOINT active_record_1
190887
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
190888
+ SQL (0.1ms) DELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ? [["id", 1]]
190889
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
190890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190891
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
190892
+  (0.1ms) DELETE FROM "users";
190893
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190894
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190895
+  (0.0ms) DELETE FROM "notifiable_apps";
190896
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190897
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190898
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
190899
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190900
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190901
+  (0.0ms) DELETE FROM "notifiable_notifications";
190902
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190903
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190904
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190905
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190906
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190907
+  (0.4ms) rollback transaction
190908
+  (0.1ms) begin transaction
190909
+  (0.0ms) SAVEPOINT active_record_1
190910
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00]]
190911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190912
+  (0.0ms) SAVEPOINT active_record_1
190913
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00]]
190914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190915
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
190916
+  (0.1ms) DELETE FROM "users";
190917
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190918
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190919
+  (0.0ms) DELETE FROM "notifiable_apps";
190920
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190921
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190922
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
190923
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190924
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190925
+  (0.0ms) DELETE FROM "notifiable_notifications";
190926
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190927
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190928
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
190929
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190930
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190931
+  (0.4ms) rollback transaction
190932
+  (0.0ms) begin transaction
190933
+  (0.1ms) SAVEPOINT active_record_1
190934
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00]]
190935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190936
+  (0.0ms) SAVEPOINT active_record_1
190937
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Thu, 13 Mar 2014 10:28:45 UTC +00:00]]
190938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190939
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
190940
+  (0.1ms) DELETE FROM "users";
190941
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190942
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
190943
+  (0.0ms) DELETE FROM "notifiable_apps";
190944
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190945
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
190946
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
190947
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190948
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
190949
+  (0.0ms) DELETE FROM "notifiable_notifications";
190950
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190951
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
190952
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
190953
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
190954
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
190955
+  (0.4ms) rollback transaction