notifiable-rails 0.15.3 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -250094,3 +250094,3980 @@ Migrating to CreateNotifiableStatuses (20131229104039)
250094
250094
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131229104039"]]
250095
250095
   (0.7ms) commit transaction
250096
250096
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
250097
+  (0.3ms) begin transaction
250098
+  (0.0ms) SAVEPOINT active_record_1
250099
+ SQL (1.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
250100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
250101
+  (0.0ms) SAVEPOINT active_record_1
250102
+ SQL (4.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
250104
+  (0.1ms) SAVEPOINT active_record_1
250105
+ Notifiable::DeviceToken Exists (0.4ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
250106
+ SQL (0.8ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250108
+  (0.0ms) SAVEPOINT active_record_1
250109
+ SQL (0.6ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
250111
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
250112
+  (0.1ms) DELETE FROM "users";
250113
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250114
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
250115
+  (0.0ms) DELETE FROM "notifiable_apps";
250116
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250117
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250118
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250119
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250120
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250121
+  (0.0ms) DELETE FROM "notifiable_notifications";
250122
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250123
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250124
+  (0.1ms) DELETE FROM "notifiable_statuses";
250125
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250126
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250127
+  (0.5ms) rollback transaction
250128
+  (0.1ms) begin transaction
250129
+  (0.1ms) SAVEPOINT active_record_1
250130
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
250131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250132
+  (0.1ms) SAVEPOINT active_record_1
250133
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250135
+  (0.0ms) SAVEPOINT active_record_1
250136
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
250137
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250139
+  (0.0ms) SAVEPOINT active_record_1
250140
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250142
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
250143
+  (0.0ms) DELETE FROM "users";
250144
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250145
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250146
+  (0.0ms) DELETE FROM "notifiable_apps";
250147
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250148
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250149
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250150
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250151
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250152
+  (0.0ms) DELETE FROM "notifiable_notifications";
250153
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250154
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250155
+  (0.0ms) DELETE FROM "notifiable_statuses";
250156
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250157
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250158
+  (0.4ms) rollback transaction
250159
+  (0.1ms) begin transaction
250160
+  (0.0ms) SAVEPOINT active_record_1
250161
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
250162
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250163
+  (0.0ms) SAVEPOINT active_record_1
250164
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250166
+  (0.0ms) SAVEPOINT active_record_1
250167
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
250168
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250170
+  (0.0ms) SAVEPOINT active_record_1
250171
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250173
+  (0.0ms) DELETE FROM "users";
250174
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250175
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250176
+  (0.0ms) DELETE FROM "notifiable_apps";
250177
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250178
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250179
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250180
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250181
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250182
+  (0.0ms) DELETE FROM "notifiable_notifications";
250183
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250184
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250185
+  (0.0ms) DELETE FROM "notifiable_statuses";
250186
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250187
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250188
+  (0.4ms) rollback transaction
250189
+  (0.0ms) begin transaction
250190
+  (0.0ms) SAVEPOINT active_record_1
250191
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250193
+  (0.0ms) SAVEPOINT active_record_1
250194
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250196
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
250197
+  (0.1ms) DELETE FROM "users";
250198
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250199
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250200
+  (0.0ms) DELETE FROM "notifiable_apps";
250201
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250202
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250203
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
250204
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250205
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250206
+  (0.0ms) DELETE FROM "notifiable_notifications";
250207
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250208
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250209
+  (0.0ms) DELETE FROM "notifiable_statuses";
250210
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250211
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250212
+  (0.4ms) rollback transaction
250213
+  (0.1ms) begin transaction
250214
+  (0.1ms) SAVEPOINT active_record_1
250215
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250217
+  (0.0ms) SAVEPOINT active_record_1
250218
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250220
+  (0.0ms) SAVEPOINT active_record_1
250221
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["notification_id", 1]]
250222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250223
+  (0.0ms) SAVEPOINT active_record_1
250224
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
250225
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
250226
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
250227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250228
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
250229
+  (0.1ms) DELETE FROM "users";
250230
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250231
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250232
+  (0.0ms) DELETE FROM "notifiable_apps";
250233
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250234
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250235
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
250236
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250237
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250238
+  (0.0ms) DELETE FROM "notifiable_notifications";
250239
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250240
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250241
+  (0.0ms) DELETE FROM "notifiable_statuses";
250242
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250243
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250244
+  (0.5ms) rollback transaction
250245
+  (0.1ms) begin transaction
250246
+  (0.0ms) SAVEPOINT active_record_1
250247
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250249
+  (0.0ms) SAVEPOINT active_record_1
250250
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250252
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
250253
+  (0.1ms) DELETE FROM "users";
250254
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250255
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250256
+  (0.0ms) DELETE FROM "notifiable_apps";
250257
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250258
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250259
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
250260
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250261
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250262
+  (0.0ms) DELETE FROM "notifiable_notifications";
250263
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250264
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250265
+  (0.0ms) DELETE FROM "notifiable_statuses";
250266
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250267
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250268
+  (0.3ms) rollback transaction
250269
+  (0.1ms) begin transaction
250270
+  (0.0ms) SAVEPOINT active_record_1
250271
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
250272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250273
+  (0.0ms) SAVEPOINT active_record_1
250274
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250276
+  (0.0ms) SAVEPOINT active_record_1
250277
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
250278
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250280
+ 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
250281
+ 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]]
250282
+  (0.0ms) SAVEPOINT active_record_1
250283
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250285
+  (0.1ms) SAVEPOINT active_record_1
250286
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
250287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250288
+ Processing by Notifiable::NotificationsController#opened as JSON
250289
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-4@example.com", "notification"=>{}}
250290
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
250291
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
250292
+ 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]]
250293
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
250294
+  (0.0ms) SAVEPOINT active_record_1
250295
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
250296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250297
+ 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]]
250298
+  (0.0ms) SAVEPOINT active_record_1
250299
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil]]
250300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250301
+ Completed 200 OK in 8ms (ActiveRecord: 1.0ms)
250302
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
250303
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
250304
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
250305
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
250306
+  (0.0ms) DELETE FROM "users";
250307
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250308
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250309
+  (0.0ms) DELETE FROM "notifiable_apps";
250310
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250311
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250312
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250313
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250314
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250315
+  (0.0ms) DELETE FROM "notifiable_notifications";
250316
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250317
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250318
+  (0.0ms) DELETE FROM "notifiable_statuses";
250319
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250320
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250321
+  (0.5ms) rollback transaction
250322
+  (0.1ms) begin transaction
250323
+  (0.0ms) SAVEPOINT active_record_1
250324
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
250325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250326
+  (0.0ms) SAVEPOINT active_record_1
250327
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250329
+  (0.0ms) SAVEPOINT active_record_1
250330
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
250331
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250333
+ 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
250334
+ 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]]
250335
+  (0.0ms) SAVEPOINT active_record_1
250336
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250338
+  (0.0ms) SAVEPOINT active_record_1
250339
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
250340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250341
+  (0.0ms) SAVEPOINT active_record_1
250342
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
250343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250344
+ Processing by Notifiable::NotificationsController#opened as JSON
250345
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-6@example.com", "notification"=>{}}
250346
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
250347
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
250348
+ 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]]
250349
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
250350
+ Filter chain halted as :check_authorisation! rendered or redirected
250351
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
250352
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
250353
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
250354
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
250355
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
250356
+  (0.0ms) DELETE FROM "users";
250357
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250358
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250359
+  (0.0ms) DELETE FROM "notifiable_apps";
250360
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250361
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250362
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250363
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250364
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250365
+  (0.0ms) DELETE FROM "notifiable_notifications";
250366
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250367
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250368
+  (0.0ms) DELETE FROM "notifiable_statuses";
250369
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250370
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250371
+  (0.5ms) rollback transaction
250372
+  (0.1ms) begin transaction
250373
+  (0.0ms) SAVEPOINT active_record_1
250374
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
250375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250376
+  (0.0ms) SAVEPOINT active_record_1
250377
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250379
+  (0.0ms) SAVEPOINT active_record_1
250380
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
250381
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250383
+ 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
250384
+ 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]]
250385
+  (0.0ms) SAVEPOINT active_record_1
250386
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250388
+  (0.0ms) SAVEPOINT active_record_1
250389
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250391
+  (0.0ms) SAVEPOINT active_record_1
250392
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
250393
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250395
+  (0.0ms) SAVEPOINT active_record_1
250396
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
250397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250398
+ Processing by Notifiable::NotificationsController#opened as JSON
250399
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
250400
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1
250401
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
250402
+ 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]]
250403
+  (0.0ms) SAVEPOINT active_record_1
250404
+ SQL (0.0ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
250405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250406
+ 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]]
250407
+  (0.0ms) SAVEPOINT active_record_1
250408
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil]]
250409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250410
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
250411
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
250412
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
250413
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
250414
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
250415
+  (0.1ms) DELETE FROM "users";
250416
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250417
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
250418
+  (0.0ms) DELETE FROM "notifiable_apps";
250419
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250420
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250421
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250422
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250423
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250424
+  (0.0ms) DELETE FROM "notifiable_notifications";
250425
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250426
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250427
+  (0.0ms) DELETE FROM "notifiable_statuses";
250428
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250429
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250430
+  (0.5ms) rollback transaction
250431
+  (0.0ms) begin transaction
250432
+  (0.0ms) SAVEPOINT active_record_1
250433
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250435
+  (0.0ms) SAVEPOINT active_record_1
250436
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250438
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
250439
+  (0.1ms) DELETE FROM "users";
250440
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250441
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250442
+  (0.0ms) DELETE FROM "notifiable_apps";
250443
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250444
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250445
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
250446
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250447
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250448
+  (0.0ms) DELETE FROM "notifiable_notifications";
250449
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250450
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250451
+  (0.0ms) DELETE FROM "notifiable_statuses";
250452
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250453
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250454
+  (0.4ms) rollback transaction
250455
+  (0.0ms) begin transaction
250456
+  (0.0ms) SAVEPOINT active_record_1
250457
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250459
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
250460
+  (0.0ms) SAVEPOINT active_record_1
250461
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250463
+  (0.0ms) SAVEPOINT active_record_1
250464
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250466
+  (0.0ms) SAVEPOINT active_record_1
250467
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
250468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250469
+  (0.0ms) SAVEPOINT active_record_1
250470
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250472
+  (0.0ms) SAVEPOINT active_record_1
250473
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
250474
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250476
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
250477
+  (0.0ms) DELETE FROM "users";
250478
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250479
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250480
+  (0.0ms) DELETE FROM "notifiable_apps";
250481
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250482
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250483
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250484
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250485
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250486
+  (0.0ms) DELETE FROM "notifiable_notifications";
250487
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250488
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250489
+  (0.0ms) DELETE FROM "notifiable_statuses";
250490
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250491
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250492
+  (0.4ms) rollback transaction
250493
+  (0.1ms) begin transaction
250494
+  (0.0ms) SAVEPOINT active_record_1
250495
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250497
+  (0.0ms) SAVEPOINT active_record_1
250498
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
250499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250500
+  (0.1ms) SAVEPOINT active_record_1
250501
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250503
+  (0.0ms) SAVEPOINT active_record_1
250504
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
250505
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :sms], ["token", "ABCD9"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250507
+  (0.0ms) SAVEPOINT active_record_1
250508
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250510
+  (0.0ms) SAVEPOINT active_record_1
250511
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250513
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
250514
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
250515
+  (0.0ms) DELETE FROM "users";
250516
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250517
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250518
+  (0.1ms) DELETE FROM "notifiable_apps";
250519
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250520
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250521
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250522
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250523
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250524
+  (0.0ms) DELETE FROM "notifiable_notifications";
250525
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250526
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250527
+  (0.0ms) DELETE FROM "notifiable_statuses";
250528
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250529
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250530
+  (0.5ms) rollback transaction
250531
+  (0.1ms) begin transaction
250532
+  (0.0ms) SAVEPOINT active_record_1
250533
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250535
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
250536
+  (0.0ms) SAVEPOINT active_record_1
250537
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250538
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250539
+  (0.0ms) SAVEPOINT active_record_1
250540
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250542
+  (0.0ms) SAVEPOINT active_record_1
250543
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
250544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250545
+  (0.0ms) SAVEPOINT active_record_1
250546
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250548
+  (0.0ms) SAVEPOINT active_record_1
250549
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
250550
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250552
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
250553
+  (0.0ms) DELETE FROM "users";
250554
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250555
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250556
+  (0.0ms) DELETE FROM "notifiable_apps";
250557
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250558
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250559
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250560
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250561
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250562
+  (0.0ms) DELETE FROM "notifiable_notifications";
250563
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250564
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250565
+  (0.0ms) DELETE FROM "notifiable_statuses";
250566
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250567
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250568
+  (0.5ms) rollback transaction
250569
+  (0.0ms) begin transaction
250570
+  (0.0ms) SAVEPOINT active_record_1
250571
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250573
+  (0.0ms) SAVEPOINT active_record_1
250574
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250576
+  (0.0ms) SAVEPOINT active_record_1
250577
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
250578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250579
+  (0.0ms) SAVEPOINT active_record_1
250580
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250582
+  (0.0ms) SAVEPOINT active_record_1
250583
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
250584
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250585
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250586
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
250587
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
250588
+  (0.0ms) DELETE FROM "users";
250589
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250590
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250591
+  (0.0ms) DELETE FROM "notifiable_apps";
250592
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250593
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250594
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250595
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250596
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250597
+  (0.0ms) DELETE FROM "notifiable_notifications";
250598
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250599
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250600
+  (0.0ms) DELETE FROM "notifiable_statuses";
250601
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250602
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250603
+  (0.5ms) rollback transaction
250604
+  (0.0ms) begin transaction
250605
+  (0.1ms) SAVEPOINT active_record_1
250606
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250608
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
250609
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
250610
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
250611
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
250612
+  (0.1ms) DELETE FROM "users";
250613
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250614
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250615
+  (0.0ms) DELETE FROM "notifiable_apps";
250616
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250617
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250618
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
250619
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250620
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250621
+  (0.0ms) DELETE FROM "notifiable_notifications";
250622
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250623
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250624
+  (0.1ms) DELETE FROM "notifiable_statuses";
250625
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250626
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250627
+  (0.5ms) rollback transaction
250628
+  (0.1ms) begin transaction
250629
+  (0.0ms) SAVEPOINT active_record_1
250630
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
250631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250632
+  (0.1ms) SAVEPOINT active_record_1
250633
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250635
+  (0.0ms) SAVEPOINT active_record_1
250636
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
250637
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250639
+ 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
250640
+ Processing by Notifiable::DeviceTokensController#update as JSON
250641
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-13@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
250642
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
250643
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
250644
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
250645
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
250646
+ Unpermitted parameters: id, user_email, device_token
250647
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
250648
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
250649
+  (0.0ms) SAVEPOINT active_record_1
250650
+ 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]]
250651
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
250652
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250654
+ Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.8ms)
250655
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
250656
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
250657
+  (0.0ms) DELETE FROM "users";
250658
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250659
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250660
+  (0.0ms) DELETE FROM "notifiable_apps";
250661
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250662
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250663
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
250664
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250665
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250666
+  (0.0ms) DELETE FROM "notifiable_notifications";
250667
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250668
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250669
+  (0.0ms) DELETE FROM "notifiable_statuses";
250670
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250671
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250672
+  (0.5ms) rollback transaction
250673
+  (0.1ms) begin transaction
250674
+  (0.0ms) SAVEPOINT active_record_1
250675
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250676
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250677
+ Processing by Notifiable::DeviceTokensController#create as JSON
250678
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
250679
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
250680
+ Unpermitted parameters: device_token
250681
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
250682
+  (0.0ms) SAVEPOINT active_record_1
250683
+ 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]]
250684
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
250685
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250686
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250687
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
250688
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
250689
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
250690
+ 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]]
250691
+  (0.1ms) SELECT COUNT(*) FROM "users"
250692
+  (0.1ms) DELETE FROM "users";
250693
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250694
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250695
+  (0.0ms) DELETE FROM "notifiable_apps";
250696
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250697
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250698
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250699
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250700
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250701
+  (0.1ms) DELETE FROM "notifiable_notifications";
250702
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250703
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250704
+  (0.1ms) DELETE FROM "notifiable_statuses";
250705
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250706
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250707
+  (0.4ms) rollback transaction
250708
+  (0.0ms) begin transaction
250709
+  (0.0ms) SAVEPOINT active_record_1
250710
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
250711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250712
+  (0.1ms) SAVEPOINT active_record_1
250713
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250715
+  (0.0ms) SAVEPOINT active_record_1
250716
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
250717
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250719
+ 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
250720
+  (0.0ms) SAVEPOINT active_record_1
250721
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250723
+ Processing by Notifiable::DeviceTokensController#create as JSON
250724
+ Parameters: {"token"=>"ABCD13", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-14@example.com", "device_token"=>{"token"=>"ABCD13", "provider"=>"mock", "app_id"=>"2"}}
250725
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
250726
+ Unpermitted parameters: user_email, device_token
250727
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
250728
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
250729
+  (0.0ms) SAVEPOINT active_record_1
250730
+ 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]]
250731
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD13' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
250732
+ SQL (0.1ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250734
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
250735
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
250736
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
250737
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
250738
+ 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]]
250739
+  (0.1ms) DELETE FROM "users";
250740
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250741
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250742
+  (0.0ms) DELETE FROM "notifiable_apps";
250743
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250744
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250745
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250746
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250747
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250748
+  (0.0ms) DELETE FROM "notifiable_notifications";
250749
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250750
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250751
+  (0.0ms) DELETE FROM "notifiable_statuses";
250752
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250753
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250754
+  (0.5ms) rollback transaction
250755
+  (0.1ms) begin transaction
250756
+  (0.0ms) SAVEPOINT active_record_1
250757
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
250758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250759
+ Processing by Notifiable::DeviceTokensController#create as JSON
250760
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-15@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
250761
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
250762
+ Unpermitted parameters: user_email, device_token
250763
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
250764
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
250765
+  (0.0ms) SAVEPOINT active_record_1
250766
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
250767
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
250768
+ Completed 422 Unprocessable Entity in 9ms (Views: 0.2ms | ActiveRecord: 0.3ms)
250769
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
250770
+  (0.2ms) DELETE FROM "users";
250771
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250772
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
250773
+  (0.1ms) DELETE FROM "notifiable_apps";
250774
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250775
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250776
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
250777
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250778
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250779
+  (0.0ms) DELETE FROM "notifiable_notifications";
250780
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250781
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250782
+  (0.0ms) DELETE FROM "notifiable_statuses";
250783
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250784
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250785
+  (0.6ms) rollback transaction
250786
+  (0.1ms) begin transaction
250787
+  (0.1ms) SAVEPOINT active_record_1
250788
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
250789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
250790
+  (0.1ms) SAVEPOINT active_record_1
250791
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
250793
+  (0.0ms) SAVEPOINT active_record_1
250794
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
250795
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
250797
+ 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
250798
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
250799
+ Parameters: {"id"=>"1", "user_email"=>"person-16@example.com", "device_token"=>{"id"=>"1"}}
250800
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
250801
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
250802
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
250803
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
250804
+  (0.0ms) SAVEPOINT active_record_1
250805
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
250806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250807
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
250808
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
250809
+  (0.0ms) DELETE FROM "users";
250810
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250811
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
250812
+  (0.0ms) DELETE FROM "notifiable_apps";
250813
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250814
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250815
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250816
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250817
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250818
+  (0.1ms) DELETE FROM "notifiable_notifications";
250819
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250820
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250821
+  (0.1ms) DELETE FROM "notifiable_statuses";
250822
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250823
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250824
+  (0.4ms) rollback transaction
250825
+  (0.1ms) begin transaction
250826
+  (0.0ms) SAVEPOINT active_record_1
250827
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
250828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250829
+  (0.1ms) SAVEPOINT active_record_1
250830
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250832
+  (0.0ms) SAVEPOINT active_record_1
250833
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
250834
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250836
+ 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
250837
+  (0.0ms) SAVEPOINT active_record_1
250838
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
250839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250840
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
250841
+ Parameters: {"id"=>"1", "user_email"=>"person-18@example.com", "device_token"=>{"id"=>"1"}}
250842
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
250843
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
250844
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
250845
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
250846
+ Filter chain halted as :ensure_authorized! rendered or redirected
250847
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
250848
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15'
250849
+  (0.0ms) DELETE FROM "users";
250850
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250851
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250852
+  (0.0ms) DELETE FROM "notifiable_apps";
250853
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250854
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250855
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250856
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250857
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250858
+  (0.1ms) DELETE FROM "notifiable_notifications";
250859
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250860
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250861
+  (0.1ms) DELETE FROM "notifiable_statuses";
250862
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250863
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250864
+  (0.4ms) rollback transaction
250865
+  (0.0ms) begin transaction
250866
+  (0.0ms) SAVEPOINT active_record_1
250867
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
250868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250869
+  (0.1ms) SAVEPOINT active_record_1
250870
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250872
+  (0.0ms) SAVEPOINT active_record_1
250873
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
250874
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250876
+ 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
250877
+ Processing by Notifiable::DeviceTokensController#create as JSON
250878
+ Parameters: {"token"=>"ABCD16", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD16", "provider"=>"mpns"}}
250879
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
250880
+ Unpermitted parameters: device_token
250881
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
250882
+  (0.0ms) SAVEPOINT active_record_1
250883
+ 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]]
250884
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD16' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
250885
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250887
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)
250888
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
250889
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
250890
+  (0.0ms) DELETE FROM "users";
250891
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250892
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250893
+  (0.0ms) DELETE FROM "notifiable_apps";
250894
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250895
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250896
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250897
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250898
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250899
+  (0.1ms) DELETE FROM "notifiable_notifications";
250900
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250901
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250902
+  (0.0ms) DELETE FROM "notifiable_statuses";
250903
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250904
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250905
+  (0.4ms) rollback transaction
250906
+  (0.0ms) begin transaction
250907
+  (0.0ms) SAVEPOINT active_record_1
250908
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
250909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250910
+  (0.0ms) SAVEPOINT active_record_1
250911
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250913
+ Processing by Notifiable::DeviceTokensController#create as JSON
250914
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-20@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
250915
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
250916
+ Unpermitted parameters: user_email, device_token
250917
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
250918
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
250919
+  (0.0ms) SAVEPOINT active_record_1
250920
+ 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]]
250921
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
250922
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250924
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
250925
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
250926
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
250927
+ 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
250928
+ 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]]
250929
+  (0.1ms) DELETE FROM "users";
250930
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250931
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
250932
+  (0.0ms) DELETE FROM "notifiable_apps";
250933
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250934
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250935
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250936
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250937
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250938
+  (0.1ms) DELETE FROM "notifiable_notifications";
250939
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250940
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250941
+  (0.0ms) DELETE FROM "notifiable_statuses";
250942
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250943
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250944
+  (0.5ms) rollback transaction
250945
+  (0.0ms) begin transaction
250946
+  (0.1ms) SAVEPOINT active_record_1
250947
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
250948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250949
+  (0.0ms) SAVEPOINT active_record_1
250950
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250952
+  (0.1ms) SAVEPOINT active_record_1
250953
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
250954
+ 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, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
250955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250956
+ 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
250957
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
250958
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
250959
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
250960
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
250961
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
250962
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
250963
+ Filter chain halted as :ensure_authorized! rendered or redirected
250964
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
250965
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17'
250966
+  (0.0ms) DELETE FROM "users";
250967
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250968
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
250969
+  (0.0ms) DELETE FROM "notifiable_apps";
250970
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250971
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
250972
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
250973
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250974
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
250975
+  (0.1ms) DELETE FROM "notifiable_notifications";
250976
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250977
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
250978
+  (0.1ms) DELETE FROM "notifiable_statuses";
250979
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
250980
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
250981
+  (0.6ms) rollback transaction
250982
+  (0.0ms) begin transaction
250983
+  (0.0ms) SAVEPOINT active_record_1
250984
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
250985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250986
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
250987
+ Parameters: {"id"=>"59", "user_email"=>"person-22@example.com", "device_token"=>{"id"=>"59"}}
250988
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
250989
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
250990
+  (0.0ms) SAVEPOINT active_record_1
250991
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
250992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250993
+  (0.1ms) SAVEPOINT active_record_1
250994
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
250995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250996
+  (0.0ms) SAVEPOINT active_record_1
250997
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
250998
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 2]]
250999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251000
+ 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
251001
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18'
251002
+  (0.0ms) DELETE FROM "users";
251003
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251004
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251005
+  (0.0ms) DELETE FROM "notifiable_apps";
251006
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251007
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251008
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251009
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251010
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251011
+  (0.0ms) DELETE FROM "notifiable_notifications";
251012
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251013
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251014
+  (0.0ms) DELETE FROM "notifiable_statuses";
251015
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251016
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251017
+  (0.5ms) rollback transaction
251018
+  (0.3ms) begin transaction
251019
+  (0.0ms) SAVEPOINT active_record_1
251020
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
251021
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251022
+  (0.0ms) SAVEPOINT active_record_1
251023
+ SQL (2.9ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251025
+  (0.1ms) SAVEPOINT active_record_1
251026
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
251027
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251029
+  (0.0ms) SAVEPOINT active_record_1
251030
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251032
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
251033
+  (0.0ms) DELETE FROM "users";
251034
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251035
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251036
+  (0.0ms) DELETE FROM "notifiable_apps";
251037
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251038
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251039
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251040
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251041
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251042
+  (0.0ms) DELETE FROM "notifiable_notifications";
251043
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251044
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251045
+  (0.1ms) DELETE FROM "notifiable_statuses";
251046
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251047
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251048
+  (6.7ms) rollback transaction
251049
+  (0.1ms) begin transaction
251050
+  (0.1ms) SAVEPOINT active_record_1
251051
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
251052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251053
+  (0.1ms) SAVEPOINT active_record_1
251054
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251056
+  (0.1ms) SAVEPOINT active_record_1
251057
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
251058
+ 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, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251059
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251060
+  (0.1ms) SAVEPOINT active_record_1
251061
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251062
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251063
+  (0.0ms) DELETE FROM "users";
251064
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251065
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
251066
+  (0.0ms) DELETE FROM "notifiable_apps";
251067
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251068
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251069
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251070
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251071
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251072
+  (0.0ms) DELETE FROM "notifiable_notifications";
251073
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251074
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251075
+  (0.1ms) DELETE FROM "notifiable_statuses";
251076
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251077
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251078
+  (0.5ms) rollback transaction
251079
+  (0.0ms) begin transaction
251080
+  (0.0ms) SAVEPOINT active_record_1
251081
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
251082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251083
+  (0.0ms) SAVEPOINT active_record_1
251084
+ 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, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251086
+  (0.1ms) SAVEPOINT active_record_1
251087
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
251088
+ 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, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251090
+  (0.0ms) SAVEPOINT active_record_1
251091
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251093
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
251094
+  (0.0ms) DELETE FROM "users";
251095
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251096
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251097
+  (0.0ms) DELETE FROM "notifiable_apps";
251098
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251099
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251100
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251101
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251102
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251103
+  (0.0ms) DELETE FROM "notifiable_notifications";
251104
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251105
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251106
+  (0.1ms) DELETE FROM "notifiable_statuses";
251107
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251108
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251109
+  (0.4ms) rollback transaction
251110
+  (0.1ms) begin transaction
251111
+  (0.0ms) SAVEPOINT active_record_1
251112
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251114
+  (0.0ms) SAVEPOINT active_record_1
251115
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251117
+  (0.1ms) SAVEPOINT active_record_1
251118
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["notification_id", 1]]
251119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251120
+  (0.0ms) SAVEPOINT active_record_1
251121
+ Notifiable::NotificationStatus Load (0.2ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
251122
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
251123
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
251124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251125
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
251126
+  (0.1ms) DELETE FROM "users";
251127
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251128
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251129
+  (0.0ms) DELETE FROM "notifiable_apps";
251130
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251131
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251132
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
251133
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251134
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251135
+  (0.0ms) DELETE FROM "notifiable_notifications";
251136
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251137
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251138
+  (0.0ms) DELETE FROM "notifiable_statuses";
251139
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251140
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251141
+  (0.5ms) rollback transaction
251142
+  (0.0ms) begin transaction
251143
+  (0.1ms) SAVEPOINT active_record_1
251144
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251146
+  (0.0ms) SAVEPOINT active_record_1
251147
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251149
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
251150
+  (0.1ms) DELETE FROM "users";
251151
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251152
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251153
+  (0.0ms) DELETE FROM "notifiable_apps";
251154
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251155
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251156
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
251157
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251158
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251159
+  (0.0ms) DELETE FROM "notifiable_notifications";
251160
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251161
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251162
+  (0.0ms) DELETE FROM "notifiable_statuses";
251163
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251164
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251165
+  (0.4ms) rollback transaction
251166
+  (0.1ms) begin transaction
251167
+  (0.1ms) SAVEPOINT active_record_1
251168
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251170
+  (0.0ms) SAVEPOINT active_record_1
251171
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251173
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
251174
+  (0.1ms) DELETE FROM "users";
251175
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251176
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251177
+  (0.0ms) DELETE FROM "notifiable_apps";
251178
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251179
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251180
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
251181
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251182
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251183
+  (0.0ms) DELETE FROM "notifiable_notifications";
251184
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251185
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251186
+  (0.0ms) DELETE FROM "notifiable_statuses";
251187
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251188
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251189
+  (0.4ms) rollback transaction
251190
+  (0.1ms) begin transaction
251191
+  (0.0ms) SAVEPOINT active_record_1
251192
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251194
+  (0.1ms) SAVEPOINT active_record_1
251195
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251197
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
251198
+  (0.1ms) DELETE FROM "users";
251199
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251200
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251201
+  (0.0ms) DELETE FROM "notifiable_apps";
251202
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251203
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251204
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
251205
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251206
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251207
+  (0.0ms) DELETE FROM "notifiable_notifications";
251208
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251209
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251210
+  (0.0ms) DELETE FROM "notifiable_statuses";
251211
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251212
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251213
+  (0.3ms) rollback transaction
251214
+  (0.1ms) begin transaction
251215
+  (0.1ms) SAVEPOINT active_record_1
251216
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251218
+  (0.0ms) SAVEPOINT active_record_1
251219
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251221
+  (0.0ms) SAVEPOINT active_record_1
251222
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
251223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251224
+  (0.0ms) SAVEPOINT active_record_1
251225
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251227
+  (0.0ms) SAVEPOINT active_record_1
251228
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
251229
+ 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, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251231
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
251232
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
251233
+  (0.1ms) SAVEPOINT active_record_1
251234
+ SQL (1.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 1], ["status", 200]]
251235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251236
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
251237
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
251238
+  (0.1ms) DELETE FROM "users";
251239
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251240
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
251241
+  (0.0ms) DELETE FROM "notifiable_apps";
251242
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251243
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251244
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251245
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251246
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251247
+  (0.1ms) DELETE FROM "notifiable_notifications";
251248
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251249
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251250
+  (0.0ms) DELETE FROM "notifiable_statuses";
251251
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251252
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251253
+  (0.4ms) rollback transaction
251254
+  (0.1ms) begin transaction
251255
+  (0.1ms) SAVEPOINT active_record_1
251256
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251258
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
251259
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
251260
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
251261
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
251262
+  (0.1ms) DELETE FROM "users";
251263
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251264
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251265
+  (0.0ms) DELETE FROM "notifiable_apps";
251266
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251267
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251268
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
251269
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251270
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251271
+  (0.1ms) DELETE FROM "notifiable_notifications";
251272
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251273
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251274
+  (0.1ms) DELETE FROM "notifiable_statuses";
251275
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251276
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251277
+  (0.4ms) rollback transaction
251278
+  (0.0ms) begin transaction
251279
+  (0.0ms) SAVEPOINT active_record_1
251280
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251282
+  (0.0ms) SAVEPOINT active_record_1
251283
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
251284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251285
+  (0.1ms) SAVEPOINT active_record_1
251286
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251288
+  (0.0ms) SAVEPOINT active_record_1
251289
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
251290
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :sms], ["token", "ABCD5"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251292
+  (0.0ms) SAVEPOINT active_record_1
251293
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251295
+  (0.0ms) SAVEPOINT active_record_1
251296
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251298
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
251299
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
251300
+  (0.0ms) DELETE FROM "users";
251301
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251302
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251303
+  (0.0ms) DELETE FROM "notifiable_apps";
251304
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251305
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251306
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251307
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251308
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251309
+  (0.0ms) DELETE FROM "notifiable_notifications";
251310
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251311
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251312
+  (0.0ms) DELETE FROM "notifiable_statuses";
251313
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251314
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251315
+  (0.4ms) rollback transaction
251316
+  (0.1ms) begin transaction
251317
+  (0.0ms) SAVEPOINT active_record_1
251318
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251320
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
251321
+  (0.0ms) SAVEPOINT active_record_1
251322
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251324
+  (0.0ms) SAVEPOINT active_record_1
251325
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251327
+  (0.0ms) SAVEPOINT active_record_1
251328
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
251329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251330
+  (0.0ms) SAVEPOINT active_record_1
251331
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251333
+  (0.0ms) SAVEPOINT active_record_1
251334
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
251335
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251337
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
251338
+  (0.0ms) SAVEPOINT active_record_1
251339
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251341
+  (0.0ms) SAVEPOINT active_record_1
251342
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251344
+  (0.0ms) SAVEPOINT active_record_1
251345
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
251346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251347
+  (0.0ms) SAVEPOINT active_record_1
251348
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251350
+  (0.0ms) SAVEPOINT active_record_1
251351
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
251352
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 2]]
251353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251354
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
251355
+  (0.0ms) SAVEPOINT active_record_1
251356
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
251357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251358
+  (0.0ms) SAVEPOINT active_record_1
251359
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
251360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251361
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
251362
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
251363
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
251364
+  (0.0ms) SAVEPOINT active_record_1
251365
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
251366
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil]]
251367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251368
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
251369
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
251370
+  (0.0ms) SAVEPOINT active_record_1
251371
+ 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]]
251372
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil]]
251373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251374
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
251375
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
251376
+ 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]]
251377
+ 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]]
251378
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
251379
+ 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]]
251380
+ 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]]
251381
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
251382
+  (0.0ms) DELETE FROM "users";
251383
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251384
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251385
+  (0.0ms) DELETE FROM "notifiable_apps";
251386
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251387
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251388
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251389
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251390
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251391
+  (0.0ms) DELETE FROM "notifiable_notifications";
251392
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251393
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251394
+  (0.0ms) DELETE FROM "notifiable_statuses";
251395
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251396
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251397
+  (0.5ms) rollback transaction
251398
+  (0.1ms) begin transaction
251399
+  (0.0ms) SAVEPOINT active_record_1
251400
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251402
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
251403
+  (0.0ms) SAVEPOINT active_record_1
251404
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251406
+  (0.0ms) SAVEPOINT active_record_1
251407
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251409
+  (0.0ms) SAVEPOINT active_record_1
251410
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
251411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251412
+  (0.0ms) SAVEPOINT active_record_1
251413
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251415
+  (0.0ms) SAVEPOINT active_record_1
251416
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
251417
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251419
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
251420
+  (0.0ms) SAVEPOINT active_record_1
251421
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
251422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251423
+  (0.0ms) SAVEPOINT active_record_1
251424
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251426
+  (0.0ms) SAVEPOINT active_record_1
251427
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
251428
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 2]]
251429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251430
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
251431
+  (0.0ms) SAVEPOINT active_record_1
251432
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
251433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251434
+  (0.0ms) SAVEPOINT active_record_1
251435
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
251436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251437
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
251438
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
251439
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
251440
+  (0.0ms) SAVEPOINT active_record_1
251441
+ 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]]
251442
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil]]
251443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251444
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
251445
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
251446
+ 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]]
251447
+ 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]]
251448
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
251449
+ 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]]
251450
+ 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]]
251451
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
251452
+  (0.0ms) DELETE FROM "users";
251453
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251454
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251455
+  (0.0ms) DELETE FROM "notifiable_apps";
251456
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251457
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251458
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251459
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251460
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251461
+  (0.0ms) DELETE FROM "notifiable_notifications";
251462
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251463
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251464
+  (0.0ms) DELETE FROM "notifiable_statuses";
251465
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251466
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251467
+  (0.5ms) rollback transaction
251468
+  (0.0ms) begin transaction
251469
+  (0.0ms) SAVEPOINT active_record_1
251470
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
251471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251472
+  (0.0ms) SAVEPOINT active_record_1
251473
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251475
+  (0.0ms) SAVEPOINT active_record_1
251476
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
251477
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251479
+ 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
251480
+ 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]]
251481
+  (0.0ms) SAVEPOINT active_record_1
251482
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251484
+  (0.0ms) SAVEPOINT active_record_1
251485
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
251486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251487
+  (0.0ms) SAVEPOINT active_record_1
251488
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
251489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251490
+ Processing by Notifiable::NotificationsController#opened as JSON
251491
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-12@example.com", "notification"=>{}}
251492
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
251493
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
251494
+ 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]]
251495
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
251496
+ Filter chain halted as :check_authorisation! rendered or redirected
251497
+ Completed 401 Unauthorized in 3ms (ActiveRecord: 0.3ms)
251498
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
251499
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
251500
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
251501
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
251502
+  (0.1ms) DELETE FROM "users";
251503
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251504
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251505
+  (0.0ms) DELETE FROM "notifiable_apps";
251506
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251507
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251508
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251509
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251510
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251511
+  (0.0ms) DELETE FROM "notifiable_notifications";
251512
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251513
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251514
+  (0.0ms) DELETE FROM "notifiable_statuses";
251515
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251516
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251517
+  (0.5ms) rollback transaction
251518
+  (0.1ms) begin transaction
251519
+  (0.0ms) SAVEPOINT active_record_1
251520
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
251521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251522
+  (0.0ms) SAVEPOINT active_record_1
251523
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251525
+  (0.0ms) SAVEPOINT active_record_1
251526
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
251527
+ 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, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251529
+ 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
251530
+ 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]]
251531
+  (0.1ms) SAVEPOINT active_record_1
251532
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251533
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251534
+  (0.0ms) SAVEPOINT active_record_1
251535
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251537
+  (0.0ms) SAVEPOINT active_record_1
251538
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
251539
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251541
+  (0.0ms) SAVEPOINT active_record_1
251542
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
251543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251544
+ Processing by Notifiable::NotificationsController#opened as JSON
251545
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
251546
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1
251547
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
251548
+ 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]]
251549
+  (0.0ms) SAVEPOINT active_record_1
251550
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
251551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251552
+ 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]]
251553
+  (0.0ms) SAVEPOINT active_record_1
251554
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil]]
251555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251556
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
251557
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
251558
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
251559
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
251560
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
251561
+  (0.1ms) DELETE FROM "users";
251562
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251563
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251564
+  (0.0ms) DELETE FROM "notifiable_apps";
251565
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251566
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251567
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251568
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251569
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251570
+  (0.0ms) DELETE FROM "notifiable_notifications";
251571
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251572
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251573
+  (0.0ms) DELETE FROM "notifiable_statuses";
251574
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251575
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251576
+  (0.5ms) rollback transaction
251577
+  (0.1ms) begin transaction
251578
+  (0.1ms) SAVEPOINT active_record_1
251579
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
251580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251581
+  (0.1ms) SAVEPOINT active_record_1
251582
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251583
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251584
+  (0.0ms) SAVEPOINT active_record_1
251585
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
251586
+ 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, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251588
+ 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
251589
+ 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]]
251590
+  (0.1ms) SAVEPOINT active_record_1
251591
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251593
+  (0.0ms) SAVEPOINT active_record_1
251594
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
251595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251596
+ Processing by Notifiable::NotificationsController#opened as JSON
251597
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-14@example.com", "notification"=>{}}
251598
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
251599
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
251600
+ 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]]
251601
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
251602
+  (0.0ms) SAVEPOINT active_record_1
251603
+ SQL (0.0ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
251604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251605
+ 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]]
251606
+  (0.0ms) SAVEPOINT active_record_1
251607
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil]]
251608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251609
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
251610
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
251611
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
251612
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
251613
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
251614
+  (0.1ms) DELETE FROM "users";
251615
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251616
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
251617
+  (0.0ms) DELETE FROM "notifiable_apps";
251618
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251619
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251620
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251621
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251622
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251623
+  (0.0ms) DELETE FROM "notifiable_notifications";
251624
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251625
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251626
+  (0.0ms) DELETE FROM "notifiable_statuses";
251627
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251628
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251629
+  (0.5ms) rollback transaction
251630
+  (0.0ms) begin transaction
251631
+  (0.0ms) SAVEPOINT active_record_1
251632
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
251633
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251634
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
251635
+ Parameters: {"id"=>"59", "user_email"=>"person-15@example.com", "device_token"=>{"id"=>"59"}}
251636
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
251637
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
251638
+  (0.0ms) SAVEPOINT active_record_1
251639
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
251640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251641
+  (0.0ms) SAVEPOINT active_record_1
251642
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251644
+  (0.0ms) SAVEPOINT active_record_1
251645
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
251646
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 2]]
251647
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251648
+ 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
251649
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14'
251650
+  (0.0ms) DELETE FROM "users";
251651
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251652
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
251653
+  (0.0ms) DELETE FROM "notifiable_apps";
251654
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251655
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251656
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251657
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251658
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251659
+  (0.0ms) DELETE FROM "notifiable_notifications";
251660
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251661
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251662
+  (0.0ms) DELETE FROM "notifiable_statuses";
251663
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251664
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251665
+  (0.4ms) rollback transaction
251666
+  (0.1ms) begin transaction
251667
+  (0.0ms) SAVEPOINT active_record_1
251668
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
251669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251670
+  (0.0ms) SAVEPOINT active_record_1
251671
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251673
+  (0.0ms) SAVEPOINT active_record_1
251674
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
251675
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251676
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251677
+ 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
251678
+  (0.0ms) SAVEPOINT active_record_1
251679
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
251680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251681
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
251682
+ Parameters: {"id"=>"1", "user_email"=>"person-18@example.com", "device_token"=>{"id"=>"1"}}
251683
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
251684
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
251685
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
251686
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
251687
+ Filter chain halted as :ensure_authorized! rendered or redirected
251688
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
251689
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15'
251690
+  (0.0ms) DELETE FROM "users";
251691
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251692
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251693
+  (0.0ms) DELETE FROM "notifiable_apps";
251694
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251695
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251696
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251697
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251698
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251699
+  (0.1ms) DELETE FROM "notifiable_notifications";
251700
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251701
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251702
+  (0.0ms) DELETE FROM "notifiable_statuses";
251703
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251704
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251705
+  (0.4ms) rollback transaction
251706
+  (0.0ms) begin transaction
251707
+  (0.0ms) SAVEPOINT active_record_1
251708
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
251709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251710
+  (0.0ms) SAVEPOINT active_record_1
251711
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251713
+ Processing by Notifiable::DeviceTokensController#create as JSON
251714
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-19@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
251715
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
251716
+ Unpermitted parameters: user_email, device_token
251717
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
251718
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
251719
+  (0.0ms) SAVEPOINT active_record_1
251720
+ 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]]
251721
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
251722
+ 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, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251724
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
251725
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
251726
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
251727
+ 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
251728
+ 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]]
251729
+  (0.1ms) DELETE FROM "users";
251730
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251731
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
251732
+  (0.0ms) DELETE FROM "notifiable_apps";
251733
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251734
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251735
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251736
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251737
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251738
+  (0.1ms) DELETE FROM "notifiable_notifications";
251739
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251740
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251741
+  (0.0ms) DELETE FROM "notifiable_statuses";
251742
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251743
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251744
+  (0.5ms) rollback transaction
251745
+  (0.1ms) begin transaction
251746
+  (0.0ms) SAVEPOINT active_record_1
251747
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
251748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251749
+ Processing by Notifiable::DeviceTokensController#create as JSON
251750
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-20@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
251751
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
251752
+ Unpermitted parameters: user_email, device_token
251753
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
251754
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
251755
+  (0.0ms) SAVEPOINT active_record_1
251756
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
251757
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
251758
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 0.4ms)
251759
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
251760
+  (0.3ms) DELETE FROM "users";
251761
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251762
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
251763
+  (0.1ms) DELETE FROM "notifiable_apps";
251764
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251765
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251766
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
251767
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251768
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251769
+  (0.1ms) DELETE FROM "notifiable_notifications";
251770
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251771
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251772
+  (0.1ms) DELETE FROM "notifiable_statuses";
251773
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251774
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251775
+  (0.5ms) rollback transaction
251776
+  (0.1ms) begin transaction
251777
+  (0.0ms) SAVEPOINT active_record_1
251778
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
251779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251780
+  (0.0ms) SAVEPOINT active_record_1
251781
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251783
+  (0.0ms) SAVEPOINT active_record_1
251784
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
251785
+ 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, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251787
+ 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
251788
+  (0.0ms) SAVEPOINT active_record_1
251789
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251791
+ Processing by Notifiable::DeviceTokensController#create as JSON
251792
+ Parameters: {"token"=>"ABCD16", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-21@example.com", "device_token"=>{"token"=>"ABCD16", "provider"=>"mock", "app_id"=>"2"}}
251793
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
251794
+ Unpermitted parameters: user_email, device_token
251795
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
251796
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
251797
+  (0.1ms) SAVEPOINT active_record_1
251798
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
251799
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD16' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
251800
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251802
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
251803
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
251804
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
251805
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
251806
+ 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]]
251807
+  (0.1ms) DELETE FROM "users";
251808
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251809
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
251810
+  (0.0ms) DELETE FROM "notifiable_apps";
251811
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251812
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251813
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251814
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251815
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251816
+  (0.1ms) DELETE FROM "notifiable_notifications";
251817
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251818
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251819
+  (0.0ms) DELETE FROM "notifiable_statuses";
251820
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251821
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251822
+  (0.5ms) rollback transaction
251823
+  (0.1ms) begin transaction
251824
+  (0.1ms) SAVEPOINT active_record_1
251825
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
251826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251827
+  (0.0ms) SAVEPOINT active_record_1
251828
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251830
+  (0.0ms) SAVEPOINT active_record_1
251831
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
251832
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251833
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251834
+ 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
251835
+ Processing by Notifiable::DeviceTokensController#create as JSON
251836
+ Parameters: {"token"=>"ABCD17", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD17", "provider"=>"mpns"}}
251837
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
251838
+ Unpermitted parameters: device_token
251839
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
251840
+  (0.0ms) SAVEPOINT active_record_1
251841
+ 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]]
251842
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD17' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
251843
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251845
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
251846
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
251847
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
251848
+  (0.0ms) DELETE FROM "users";
251849
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251850
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251851
+  (0.0ms) DELETE FROM "notifiable_apps";
251852
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251853
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251854
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251855
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251856
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251857
+  (0.0ms) DELETE FROM "notifiable_notifications";
251858
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251859
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251860
+  (0.0ms) DELETE FROM "notifiable_statuses";
251861
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251862
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251863
+  (0.4ms) rollback transaction
251864
+  (0.1ms) begin transaction
251865
+  (0.1ms) SAVEPOINT active_record_1
251866
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251868
+ Processing by Notifiable::DeviceTokensController#create as JSON
251869
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
251870
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
251871
+ Unpermitted parameters: device_token
251872
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
251873
+  (0.0ms) SAVEPOINT active_record_1
251874
+ 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]]
251875
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
251876
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251878
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
251879
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
251880
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
251881
+ 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]]
251882
+  (0.0ms) SELECT COUNT(*) FROM "users"
251883
+  (0.1ms) DELETE FROM "users";
251884
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251885
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251886
+  (0.0ms) DELETE FROM "notifiable_apps";
251887
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251888
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251889
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251890
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251891
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251892
+  (0.1ms) DELETE FROM "notifiable_notifications";
251893
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251894
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251895
+  (0.0ms) DELETE FROM "notifiable_statuses";
251896
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251897
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251898
+  (0.4ms) rollback transaction
251899
+  (0.1ms) begin transaction
251900
+  (0.0ms) SAVEPOINT active_record_1
251901
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
251902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251903
+  (0.0ms) SAVEPOINT active_record_1
251904
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251906
+  (0.0ms) SAVEPOINT active_record_1
251907
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
251908
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251910
+ 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
251911
+ Processing by Notifiable::DeviceTokensController#update as JSON
251912
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-23@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
251913
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
251914
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
251915
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
251916
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
251917
+ Unpermitted parameters: user_email, device_token
251918
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
251919
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
251920
+  (0.1ms) SAVEPOINT active_record_1
251921
+ 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]]
251922
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
251923
+ SQL (0.1ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251925
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
251926
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
251927
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
251928
+  (0.0ms) DELETE FROM "users";
251929
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251930
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251931
+  (0.0ms) DELETE FROM "notifiable_apps";
251932
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251933
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251934
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251935
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251936
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251937
+  (0.0ms) DELETE FROM "notifiable_notifications";
251938
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251939
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251940
+  (0.0ms) DELETE FROM "notifiable_statuses";
251941
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251942
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251943
+  (0.5ms) rollback transaction
251944
+  (0.1ms) begin transaction
251945
+  (0.0ms) SAVEPOINT active_record_1
251946
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
251947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251948
+  (0.0ms) SAVEPOINT active_record_1
251949
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251951
+  (0.0ms) SAVEPOINT active_record_1
251952
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD19' LIMIT 1
251953
+ 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, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD19"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251955
+ 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
251956
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
251957
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
251958
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
251959
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
251960
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
251961
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
251962
+ Filter chain halted as :ensure_authorized! rendered or redirected
251963
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
251964
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD19'
251965
+  (0.1ms) DELETE FROM "users";
251966
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251967
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
251968
+  (0.0ms) DELETE FROM "notifiable_apps";
251969
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251970
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
251971
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
251972
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251973
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
251974
+  (0.1ms) DELETE FROM "notifiable_notifications";
251975
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251976
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
251977
+  (0.0ms) DELETE FROM "notifiable_statuses";
251978
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
251979
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
251980
+  (0.5ms) rollback transaction
251981
+  (0.0ms) begin transaction
251982
+  (0.0ms) SAVEPOINT active_record_1
251983
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-25@example.com"]]
251984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251985
+  (0.0ms) SAVEPOINT active_record_1
251986
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
251987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251988
+  (0.0ms) SAVEPOINT active_record_1
251989
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD20' LIMIT 1
251990
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD20"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
251991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251992
+ 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
251993
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
251994
+ Parameters: {"id"=>"1", "user_email"=>"person-25@example.com", "device_token"=>{"id"=>"1"}}
251995
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
251996
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
251997
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
251998
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-25@example.com' LIMIT 1
251999
+  (0.0ms) SAVEPOINT active_record_1
252000
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
252001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252002
+ Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
252003
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
252004
+  (0.0ms) DELETE FROM "users";
252005
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252006
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252007
+  (0.0ms) DELETE FROM "notifiable_apps";
252008
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252009
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252010
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252011
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252012
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252013
+  (0.1ms) DELETE FROM "notifiable_notifications";
252014
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252015
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252016
+  (0.0ms) DELETE FROM "notifiable_statuses";
252017
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252018
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252019
+  (0.5ms) rollback transaction
252020
+  (0.3ms) begin transaction
252021
+  (0.0ms) SAVEPOINT active_record_1
252022
+ SQL (2.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252024
+  (0.0ms) SAVEPOINT active_record_1
252025
+ SQL (0.9ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252027
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
252028
+  (0.1ms) DELETE FROM "users";
252029
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252030
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252031
+  (0.0ms) DELETE FROM "notifiable_apps";
252032
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252033
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252034
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
252035
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252036
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252037
+  (0.0ms) DELETE FROM "notifiable_notifications";
252038
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252039
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252040
+  (0.1ms) DELETE FROM "notifiable_statuses";
252041
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252042
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252043
+  (6.7ms) rollback transaction
252044
+  (0.1ms) begin transaction
252045
+  (0.1ms) SAVEPOINT active_record_1
252046
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252047
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252048
+  (0.0ms) SAVEPOINT active_record_1
252049
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252051
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
252052
+  (0.1ms) DELETE FROM "users";
252053
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252054
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
252055
+  (0.0ms) DELETE FROM "notifiable_apps";
252056
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252057
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252058
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
252059
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252060
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252061
+  (0.0ms) DELETE FROM "notifiable_notifications";
252062
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252063
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252064
+  (0.1ms) DELETE FROM "notifiable_statuses";
252065
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252066
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252067
+  (0.5ms) rollback transaction
252068
+  (0.1ms) begin transaction
252069
+  (0.0ms) SAVEPOINT active_record_1
252070
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252072
+  (0.0ms) SAVEPOINT active_record_1
252073
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252075
+  (0.0ms) SAVEPOINT active_record_1
252076
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["notification_id", 1]]
252077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252078
+  (0.0ms) SAVEPOINT active_record_1
252079
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
252080
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
252081
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
252082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252083
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
252084
+  (0.1ms) DELETE FROM "users";
252085
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252086
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252087
+  (0.0ms) DELETE FROM "notifiable_apps";
252088
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252089
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252090
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
252091
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252092
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252093
+  (0.0ms) DELETE FROM "notifiable_notifications";
252094
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252095
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252096
+  (0.0ms) DELETE FROM "notifiable_statuses";
252097
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252098
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252099
+  (0.5ms) rollback transaction
252100
+  (0.1ms) begin transaction
252101
+  (0.0ms) SAVEPOINT active_record_1
252102
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252104
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
252105
+  (0.0ms) SAVEPOINT active_record_1
252106
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252108
+  (0.0ms) SAVEPOINT active_record_1
252109
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252111
+  (0.0ms) SAVEPOINT active_record_1
252112
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
252113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252114
+  (0.0ms) SAVEPOINT active_record_1
252115
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252117
+  (0.0ms) SAVEPOINT active_record_1
252118
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
252119
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
252120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252121
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
252122
+  (0.1ms) SAVEPOINT active_record_1
252123
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
252124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252125
+  (0.0ms) SAVEPOINT active_record_1
252126
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252128
+  (0.0ms) SAVEPOINT active_record_1
252129
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
252130
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 2]]
252131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252132
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
252133
+  (0.0ms) SAVEPOINT active_record_1
252134
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
252135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252136
+  (0.0ms) SAVEPOINT active_record_1
252137
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
252138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252139
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
252140
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
252141
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
252142
+  (0.0ms) SAVEPOINT active_record_1
252143
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
252144
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil]]
252145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252146
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
252147
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
252148
+ 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]]
252149
+ 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]]
252150
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
252151
+ 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]]
252152
+ 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]]
252153
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
252154
+  (0.0ms) DELETE FROM "users";
252155
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252156
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252157
+  (0.0ms) DELETE FROM "notifiable_apps";
252158
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252159
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252160
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252161
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252162
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252163
+  (0.0ms) DELETE FROM "notifiable_notifications";
252164
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252165
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252166
+  (0.0ms) DELETE FROM "notifiable_statuses";
252167
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252168
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252169
+  (0.5ms) rollback transaction
252170
+  (0.0ms) begin transaction
252171
+  (0.1ms) SAVEPOINT active_record_1
252172
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252174
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
252175
+  (0.0ms) SAVEPOINT active_record_1
252176
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252178
+  (0.0ms) SAVEPOINT active_record_1
252179
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252181
+  (0.0ms) SAVEPOINT active_record_1
252182
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
252183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252184
+  (0.0ms) SAVEPOINT active_record_1
252185
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252187
+  (0.0ms) SAVEPOINT active_record_1
252188
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
252189
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
252190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252191
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
252192
+  (0.0ms) SAVEPOINT active_record_1
252193
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252195
+  (0.0ms) SAVEPOINT active_record_1
252196
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252198
+  (0.0ms) SAVEPOINT active_record_1
252199
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
252200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252201
+  (0.0ms) SAVEPOINT active_record_1
252202
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252204
+  (0.0ms) SAVEPOINT active_record_1
252205
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
252206
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 2]]
252207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252208
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
252209
+  (0.0ms) SAVEPOINT active_record_1
252210
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
252211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252212
+  (0.0ms) SAVEPOINT active_record_1
252213
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
252214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252215
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
252216
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
252217
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
252218
+  (0.0ms) SAVEPOINT active_record_1
252219
+ 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]]
252220
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil]]
252221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252222
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
252223
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
252224
+  (0.0ms) SAVEPOINT active_record_1
252225
+ 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]]
252226
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil]]
252227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252228
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
252229
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
252230
+ 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]]
252231
+ 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]]
252232
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
252233
+ 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]]
252234
+ 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]]
252235
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
252236
+  (0.0ms) DELETE FROM "users";
252237
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252238
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
252239
+  (0.0ms) DELETE FROM "notifiable_apps";
252240
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252241
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252242
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
252243
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252244
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252245
+  (0.0ms) DELETE FROM "notifiable_notifications";
252246
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252247
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252248
+  (0.0ms) DELETE FROM "notifiable_statuses";
252249
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252250
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252251
+  (0.5ms) rollback transaction
252252
+  (0.1ms) begin transaction
252253
+  (0.0ms) SAVEPOINT active_record_1
252254
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252256
+  (0.0ms) SAVEPOINT active_record_1
252257
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
252258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252259
+  (0.0ms) SAVEPOINT active_record_1
252260
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252262
+  (0.0ms) SAVEPOINT active_record_1
252263
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
252264
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :sms], ["token", "ABCD5"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
252265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252266
+  (0.0ms) SAVEPOINT active_record_1
252267
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252269
+  (0.0ms) SAVEPOINT active_record_1
252270
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252272
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
252273
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
252274
+  (0.0ms) DELETE FROM "users";
252275
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252276
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252277
+  (0.0ms) DELETE FROM "notifiable_apps";
252278
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252279
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252280
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252281
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252282
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252283
+  (0.0ms) DELETE FROM "notifiable_notifications";
252284
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252285
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252286
+  (0.0ms) DELETE FROM "notifiable_statuses";
252287
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252288
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252289
+  (0.4ms) rollback transaction
252290
+  (0.0ms) begin transaction
252291
+  (0.0ms) SAVEPOINT active_record_1
252292
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
252293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252294
+  (0.0ms) SAVEPOINT active_record_1
252295
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252297
+  (0.0ms) SAVEPOINT active_record_1
252298
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
252299
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
252300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252301
+ 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
252302
+ 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]]
252303
+  (0.0ms) SAVEPOINT active_record_1
252304
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252306
+  (0.0ms) SAVEPOINT active_record_1
252307
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
252308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252309
+ Processing by Notifiable::NotificationsController#opened as JSON
252310
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-6@example.com", "notification"=>{}}
252311
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
252312
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
252313
+ 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]]
252314
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
252315
+  (0.0ms) SAVEPOINT active_record_1
252316
+ SQL (0.2ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
252317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252318
+ 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]]
252319
+  (0.1ms) SAVEPOINT active_record_1
252320
+ SQL (0.3ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil]]
252321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252322
+ Completed 200 OK in 9ms (ActiveRecord: 1.2ms)
252323
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
252324
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
252325
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications"
252326
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
252327
+  (0.1ms) DELETE FROM "users";
252328
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252329
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
252330
+  (0.0ms) DELETE FROM "notifiable_apps";
252331
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252332
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252333
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252334
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252335
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252336
+  (0.0ms) DELETE FROM "notifiable_notifications";
252337
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252338
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252339
+  (0.0ms) DELETE FROM "notifiable_statuses";
252340
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252341
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252342
+  (0.6ms) rollback transaction
252343
+  (0.1ms) begin transaction
252344
+  (0.0ms) SAVEPOINT active_record_1
252345
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
252346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252347
+  (0.0ms) SAVEPOINT active_record_1
252348
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252350
+  (0.0ms) SAVEPOINT active_record_1
252351
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
252352
+ 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, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
252353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252354
+ 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
252355
+ 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]]
252356
+  (0.0ms) SAVEPOINT active_record_1
252357
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252359
+  (0.0ms) SAVEPOINT active_record_1
252360
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252362
+  (0.0ms) SAVEPOINT active_record_1
252363
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
252364
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252366
+  (0.0ms) SAVEPOINT active_record_1
252367
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
252368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252369
+ Processing by Notifiable::NotificationsController#opened as JSON
252370
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
252371
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1
252372
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
252373
+ 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]]
252374
+  (0.0ms) SAVEPOINT active_record_1
252375
+ SQL (0.0ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
252376
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252377
+ 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]]
252378
+  (0.0ms) SAVEPOINT active_record_1
252379
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil]]
252380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252381
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
252382
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
252383
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
252384
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications"
252385
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
252386
+  (0.0ms) DELETE FROM "users";
252387
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252388
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252389
+  (0.0ms) DELETE FROM "notifiable_apps";
252390
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252391
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252392
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252393
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252394
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252395
+  (0.0ms) DELETE FROM "notifiable_notifications";
252396
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252397
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252398
+  (0.0ms) DELETE FROM "notifiable_statuses";
252399
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252400
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252401
+  (0.5ms) rollback transaction
252402
+  (0.1ms) begin transaction
252403
+  (0.0ms) SAVEPOINT active_record_1
252404
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
252405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252406
+  (0.0ms) SAVEPOINT active_record_1
252407
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252409
+  (0.0ms) SAVEPOINT active_record_1
252410
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
252411
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
252412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252413
+ 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
252414
+ 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]]
252415
+  (0.0ms) SAVEPOINT active_record_1
252416
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252418
+  (0.0ms) SAVEPOINT active_record_1
252419
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
252420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252421
+  (0.0ms) SAVEPOINT active_record_1
252422
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
252423
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252424
+ Processing by Notifiable::NotificationsController#opened as JSON
252425
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-9@example.com", "notification"=>{}}
252426
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
252427
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
252428
+ 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]]
252429
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
252430
+ Filter chain halted as :check_authorisation! rendered or redirected
252431
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
252432
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
252433
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
252434
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
252435
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
252436
+  (0.1ms) DELETE FROM "users";
252437
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252438
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252439
+  (0.0ms) DELETE FROM "notifiable_apps";
252440
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252441
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252442
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252443
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252444
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252445
+  (0.0ms) DELETE FROM "notifiable_notifications";
252446
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252447
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252448
+  (0.0ms) DELETE FROM "notifiable_statuses";
252449
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252450
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252451
+  (0.5ms) rollback transaction
252452
+  (0.1ms) begin transaction
252453
+  (0.1ms) SAVEPOINT active_record_1
252454
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
252456
+  (0.1ms) SAVEPOINT active_record_1
252457
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252459
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
252460
+  (0.1ms) DELETE FROM "users";
252461
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252462
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
252463
+  (0.0ms) DELETE FROM "notifiable_apps";
252464
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252465
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252466
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
252467
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252468
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252469
+  (0.0ms) DELETE FROM "notifiable_notifications";
252470
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252471
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252472
+  (0.1ms) DELETE FROM "notifiable_statuses";
252473
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252474
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252475
+  (0.4ms) rollback transaction
252476
+  (0.1ms) begin transaction
252477
+  (0.0ms) SAVEPOINT active_record_1
252478
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
252479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252480
+  (0.1ms) SAVEPOINT active_record_1
252481
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252483
+  (0.0ms) SAVEPOINT active_record_1
252484
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
252485
+ 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, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
252486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252487
+ 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
252488
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
252489
+ Parameters: {"id"=>"1", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"1"}}
252490
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
252491
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
252492
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
252493
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
252494
+  (0.0ms) SAVEPOINT active_record_1
252495
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
252496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252497
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
252498
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
252499
+  (0.0ms) DELETE FROM "users";
252500
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252501
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252502
+  (0.0ms) DELETE FROM "notifiable_apps";
252503
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252504
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252505
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252506
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252507
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252508
+  (0.0ms) DELETE FROM "notifiable_notifications";
252509
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252510
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252511
+  (0.0ms) DELETE FROM "notifiable_statuses";
252512
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252513
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252514
+  (0.5ms) rollback transaction
252515
+  (0.0ms) begin transaction
252516
+  (0.0ms) SAVEPOINT active_record_1
252517
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
252518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252519
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
252520
+ Parameters: {"id"=>"59", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"59"}}
252521
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
252522
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
252523
+  (0.0ms) SAVEPOINT active_record_1
252524
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
252525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252526
+  (0.0ms) SAVEPOINT active_record_1
252527
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252529
+  (0.0ms) SAVEPOINT active_record_1
252530
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
252531
+ 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, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 2]]
252532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252533
+ 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
252534
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'
252535
+  (0.0ms) DELETE FROM "users";
252536
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252537
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
252538
+  (0.0ms) DELETE FROM "notifiable_apps";
252539
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252540
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252541
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252542
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252543
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252544
+  (0.0ms) DELETE FROM "notifiable_notifications";
252545
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252546
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252547
+  (0.1ms) DELETE FROM "notifiable_statuses";
252548
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252549
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252550
+  (0.5ms) rollback transaction
252551
+  (0.1ms) begin transaction
252552
+  (0.0ms) SAVEPOINT active_record_1
252553
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
252554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252555
+  (0.1ms) SAVEPOINT active_record_1
252556
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252558
+  (0.0ms) SAVEPOINT active_record_1
252559
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
252560
+ 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, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
252561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252562
+ 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
252563
+  (0.0ms) SAVEPOINT active_record_1
252564
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252566
+ Processing by Notifiable::DeviceTokensController#create as JSON
252567
+ Parameters: {"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-13@example.com", "device_token"=>{"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2"}}
252568
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
252569
+ Unpermitted parameters: user_email, device_token
252570
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
252571
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
252572
+  (0.0ms) SAVEPOINT active_record_1
252573
+ 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]]
252574
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD12' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
252575
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
252576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252577
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.5ms)
252578
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
252579
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
252580
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
252581
+ 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]]
252582
+  (0.1ms) DELETE FROM "users";
252583
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252584
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252585
+  (0.0ms) DELETE FROM "notifiable_apps";
252586
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252587
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252588
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252589
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252590
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252591
+  (0.1ms) DELETE FROM "notifiable_notifications";
252592
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252593
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252594
+  (0.0ms) DELETE FROM "notifiable_statuses";
252595
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252596
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252597
+  (0.5ms) rollback transaction
252598
+  (0.1ms) begin transaction
252599
+  (0.0ms) SAVEPOINT active_record_1
252600
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
252601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252602
+ Processing by Notifiable::DeviceTokensController#create as JSON
252603
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-14@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
252604
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
252605
+ Unpermitted parameters: user_email, device_token
252606
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
252607
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
252608
+  (0.0ms) SAVEPOINT active_record_1
252609
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
252610
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
252611
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
252612
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
252613
+  (0.2ms) DELETE FROM "users";
252614
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252615
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
252616
+  (0.1ms) DELETE FROM "notifiable_apps";
252617
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252618
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252619
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
252620
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252621
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252622
+  (0.0ms) DELETE FROM "notifiable_notifications";
252623
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252624
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252625
+  (0.1ms) DELETE FROM "notifiable_statuses";
252626
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252627
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252628
+  (0.5ms) rollback transaction
252629
+  (0.0ms) begin transaction
252630
+  (0.0ms) SAVEPOINT active_record_1
252631
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
252632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252633
+  (0.0ms) SAVEPOINT active_record_1
252634
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252636
+ Processing by Notifiable::DeviceTokensController#create as JSON
252637
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-15@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
252638
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
252639
+ Unpermitted parameters: user_email, device_token
252640
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
252641
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
252642
+  (0.0ms) SAVEPOINT active_record_1
252643
+ 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]]
252644
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
252645
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
252646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252647
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.7ms)
252648
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
252649
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
252650
+ 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
252651
+ 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]]
252652
+  (0.1ms) DELETE FROM "users";
252653
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252654
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
252655
+  (0.0ms) DELETE FROM "notifiable_apps";
252656
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252657
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252658
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252659
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252660
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252661
+  (0.1ms) DELETE FROM "notifiable_notifications";
252662
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252663
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252664
+  (0.1ms) DELETE FROM "notifiable_statuses";
252665
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252666
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252667
+  (0.5ms) rollback transaction
252668
+  (0.1ms) begin transaction
252669
+  (0.0ms) SAVEPOINT active_record_1
252670
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252671
+  (0.1ms) RELEASE SAVEPOINT active_record_1
252672
+ Processing by Notifiable::DeviceTokensController#create as JSON
252673
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
252674
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
252675
+ Unpermitted parameters: device_token
252676
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
252677
+  (0.0ms) SAVEPOINT active_record_1
252678
+ 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]]
252679
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
252680
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252682
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
252683
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
252684
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
252685
+ 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]]
252686
+  (0.0ms) SELECT COUNT(*) FROM "users"
252687
+  (0.1ms) DELETE FROM "users";
252688
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252689
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
252690
+  (0.0ms) DELETE FROM "notifiable_apps";
252691
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252692
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252693
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252694
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252695
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252696
+  (0.0ms) DELETE FROM "notifiable_notifications";
252697
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252698
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252699
+  (0.0ms) DELETE FROM "notifiable_statuses";
252700
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252701
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252702
+  (0.5ms) rollback transaction
252703
+  (0.0ms) begin transaction
252704
+  (0.0ms) SAVEPOINT active_record_1
252705
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
252706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252707
+  (0.0ms) SAVEPOINT active_record_1
252708
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252710
+  (0.0ms) SAVEPOINT active_record_1
252711
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
252712
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
252713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252714
+ 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
252715
+ Processing by Notifiable::DeviceTokensController#create as JSON
252716
+ Parameters: {"token"=>"ABCD13", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD13", "provider"=>"mpns"}}
252717
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
252718
+ Unpermitted parameters: device_token
252719
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
252720
+  (0.0ms) SAVEPOINT active_record_1
252721
+ 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]]
252722
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD13' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
252723
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252725
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
252726
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
252727
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
252728
+  (0.1ms) DELETE FROM "users";
252729
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252730
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252731
+  (0.0ms) DELETE FROM "notifiable_apps";
252732
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252733
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252734
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252735
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252736
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252737
+  (0.1ms) DELETE FROM "notifiable_notifications";
252738
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252739
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252740
+  (0.1ms) DELETE FROM "notifiable_statuses";
252741
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252742
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252743
+  (0.6ms) rollback transaction
252744
+  (0.0ms) begin transaction
252745
+  (0.0ms) SAVEPOINT active_record_1
252746
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
252747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252748
+  (0.0ms) SAVEPOINT active_record_1
252749
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252751
+  (0.0ms) SAVEPOINT active_record_1
252752
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
252753
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
252754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252755
+ 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
252756
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
252757
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
252758
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
252759
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
252760
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
252761
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
252762
+ Filter chain halted as :ensure_authorized! rendered or redirected
252763
+ Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms)
252764
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14'
252765
+  (0.1ms) DELETE FROM "users";
252766
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252767
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252768
+  (0.0ms) DELETE FROM "notifiable_apps";
252769
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252770
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252771
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252772
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252773
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252774
+  (0.1ms) DELETE FROM "notifiable_notifications";
252775
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252776
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252777
+  (0.1ms) DELETE FROM "notifiable_statuses";
252778
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252779
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252780
+  (0.5ms) rollback transaction
252781
+  (0.1ms) begin transaction
252782
+  (0.1ms) SAVEPOINT active_record_1
252783
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
252784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252785
+  (0.0ms) SAVEPOINT active_record_1
252786
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252788
+  (0.0ms) SAVEPOINT active_record_1
252789
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
252790
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
252791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252792
+ 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
252793
+ Processing by Notifiable::DeviceTokensController#update as JSON
252794
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-18@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
252795
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
252796
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
252797
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
252798
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
252799
+ Unpermitted parameters: user_email, device_token
252800
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
252801
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
252802
+  (0.0ms) SAVEPOINT active_record_1
252803
+ 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]]
252804
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
252805
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252807
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
252808
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
252809
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
252810
+  (0.1ms) DELETE FROM "users";
252811
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252812
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252813
+  (0.0ms) DELETE FROM "notifiable_apps";
252814
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252815
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252816
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252817
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252818
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252819
+  (0.1ms) DELETE FROM "notifiable_notifications";
252820
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252821
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252822
+  (0.0ms) DELETE FROM "notifiable_statuses";
252823
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252824
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252825
+  (0.5ms) rollback transaction
252826
+  (0.1ms) begin transaction
252827
+  (0.0ms) SAVEPOINT active_record_1
252828
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
252829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252830
+  (0.0ms) SAVEPOINT active_record_1
252831
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252833
+  (0.0ms) SAVEPOINT active_record_1
252834
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
252835
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
252836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252837
+ 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
252838
+  (0.0ms) SAVEPOINT active_record_1
252839
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
252840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252841
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
252842
+ Parameters: {"id"=>"1", "user_email"=>"person-20@example.com", "device_token"=>{"id"=>"1"}}
252843
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
252844
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
252845
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
252846
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
252847
+ Filter chain halted as :ensure_authorized! rendered or redirected
252848
+ Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms)
252849
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16'
252850
+  (0.0ms) DELETE FROM "users";
252851
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252852
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252853
+  (0.0ms) DELETE FROM "notifiable_apps";
252854
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252855
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252856
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252857
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252858
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252859
+  (0.0ms) DELETE FROM "notifiable_notifications";
252860
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252861
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252862
+  (0.1ms) DELETE FROM "notifiable_statuses";
252863
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252864
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252865
+  (0.5ms) rollback transaction
252866
+  (0.0ms) begin transaction
252867
+  (0.0ms) SAVEPOINT active_record_1
252868
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252870
+  (0.0ms) SAVEPOINT active_record_1
252871
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252873
+  (0.0ms) SAVEPOINT active_record_1
252874
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
252875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252876
+  (0.0ms) SAVEPOINT active_record_1
252877
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252879
+  (0.0ms) SAVEPOINT active_record_1
252880
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
252881
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
252882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252883
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
252884
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
252885
+  (0.0ms) SAVEPOINT active_record_1
252886
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["device_token_id", 1], ["status", 200]]
252887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252888
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
252889
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
252890
+  (0.0ms) DELETE FROM "users";
252891
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252892
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252893
+  (0.0ms) DELETE FROM "notifiable_apps";
252894
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252895
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252896
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252897
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252898
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252899
+  (0.1ms) DELETE FROM "notifiable_notifications";
252900
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252901
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252902
+  (0.0ms) DELETE FROM "notifiable_statuses";
252903
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252904
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252905
+  (0.5ms) rollback transaction
252906
+  (0.0ms) begin transaction
252907
+  (0.0ms) SAVEPOINT active_record_1
252908
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252910
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
252911
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
252912
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
252913
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
252914
+  (0.1ms) DELETE FROM "users";
252915
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252916
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252917
+  (0.0ms) DELETE FROM "notifiable_apps";
252918
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252919
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252920
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
252921
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252922
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252923
+  (0.1ms) DELETE FROM "notifiable_notifications";
252924
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252925
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252926
+  (0.0ms) DELETE FROM "notifiable_statuses";
252927
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252928
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252929
+  (0.3ms) rollback transaction
252930
+  (0.0ms) begin transaction
252931
+  (0.0ms) SAVEPOINT active_record_1
252932
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
252933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252934
+  (0.0ms) SAVEPOINT active_record_1
252935
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252937
+  (0.0ms) SAVEPOINT active_record_1
252938
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
252939
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD18"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
252940
+  (26.7ms) RELEASE SAVEPOINT active_record_1
252941
+  (0.1ms) SAVEPOINT active_record_1
252942
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252944
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
252945
+  (0.0ms) SAVEPOINT active_record_1
252946
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
252947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252948
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
252949
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
252950
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
252951
+  (0.0ms) SAVEPOINT active_record_1
252952
+ 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]]
252953
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["params", nil]]
252954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252955
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
252956
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
252957
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
252958
+  (0.0ms) DELETE FROM "users";
252959
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252960
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
252961
+  (0.0ms) DELETE FROM "notifiable_apps";
252962
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252963
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
252964
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
252965
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252966
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
252967
+  (0.0ms) DELETE FROM "notifiable_notifications";
252968
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252969
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
252970
+  (0.0ms) DELETE FROM "notifiable_statuses";
252971
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
252972
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
252973
+  (0.5ms) rollback transaction
252974
+  (0.1ms) begin transaction
252975
+  (0.1ms) SAVEPOINT active_record_1
252976
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
252977
+  (0.1ms) RELEASE SAVEPOINT active_record_1
252978
+  (0.1ms) SAVEPOINT active_record_1
252979
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252981
+  (0.1ms) SAVEPOINT active_record_1
252982
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD19' LIMIT 1
252983
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD19"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
252984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252985
+  (0.1ms) SAVEPOINT active_record_1
252986
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
252987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252988
+  (0.0ms) SAVEPOINT active_record_1
252989
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
252990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252991
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
252992
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
252993
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
252994
+  (0.0ms) SAVEPOINT active_record_1
252995
+ 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]]
252996
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["params", nil]]
252997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252998
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
252999
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
253000
+  (0.0ms) DELETE FROM "users";
253001
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253002
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253003
+  (0.0ms) DELETE FROM "notifiable_apps";
253004
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253005
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253006
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253007
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253008
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253009
+  (0.0ms) DELETE FROM "notifiable_notifications";
253010
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253011
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253012
+  (0.0ms) DELETE FROM "notifiable_statuses";
253013
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253014
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253015
+  (0.6ms) rollback transaction
253016
+  (0.1ms) begin transaction
253017
+  (0.0ms) SAVEPOINT active_record_1
253018
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-25@example.com"]]
253019
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253020
+  (0.0ms) SAVEPOINT active_record_1
253021
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
253022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253023
+  (0.0ms) SAVEPOINT active_record_1
253024
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD20' LIMIT 1
253025
+ 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, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD20"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
253026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253027
+  (0.0ms) SAVEPOINT active_record_1
253028
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
253029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253030
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253031
+  (0.0ms) DELETE FROM "users";
253032
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253033
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253034
+  (0.0ms) DELETE FROM "notifiable_apps";
253035
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253036
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253037
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253038
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253039
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253040
+  (0.0ms) DELETE FROM "notifiable_notifications";
253041
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253042
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253043
+  (0.1ms) DELETE FROM "notifiable_statuses";
253044
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253045
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253046
+  (0.5ms) rollback transaction
253047
+  (0.3ms) begin transaction
253048
+  (0.0ms) SAVEPOINT active_record_1
253049
+ SQL (0.9ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
253050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253051
+  (0.0ms) SAVEPOINT active_record_1
253052
+ SQL (3.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
253053
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253054
+  (0.1ms) SAVEPOINT active_record_1
253055
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
253056
+ 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, 01 May 2014 00:02:01 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["user_id", 1]]
253057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253058
+  (0.0ms) SAVEPOINT active_record_1
253059
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
253060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253061
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253062
+  (0.0ms) SAVEPOINT active_record_1
253063
+ SQL (0.3ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
253064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253065
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
253066
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
253067
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
253068
+  (0.0ms) SAVEPOINT active_record_1
253069
+ 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]]
253070
+ 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", Thu, 01 May 2014 00:02:01 UTC +00:00], ["params", nil]]
253071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253072
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
253073
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
253074
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
253075
+  (0.0ms) DELETE FROM "users";
253076
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253077
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253078
+  (0.0ms) DELETE FROM "notifiable_apps";
253079
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253080
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253081
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253082
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253083
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253084
+  (0.0ms) DELETE FROM "notifiable_notifications";
253085
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253086
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253087
+  (0.0ms) DELETE FROM "notifiable_statuses";
253088
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253089
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253090
+  (0.6ms) rollback transaction
253091
+  (0.1ms) begin transaction
253092
+  (0.1ms) SAVEPOINT active_record_1
253093
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
253094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253095
+  (0.1ms) SAVEPOINT active_record_1
253096
+ 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, 01 May 2014 00:02:01 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
253097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253098
+  (0.1ms) SAVEPOINT active_record_1
253099
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
253100
+ 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, 01 May 2014 00:02:01 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["user_id", 1]]
253101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253102
+  (0.1ms) SAVEPOINT active_record_1
253103
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
253104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253105
+  (0.0ms) SAVEPOINT active_record_1
253106
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
253107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253108
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
253109
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
253110
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
253111
+  (0.0ms) SAVEPOINT active_record_1
253112
+ 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]]
253113
+ 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, 01 May 2014 00:02:01 UTC +00:00], ["params", nil]]
253114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253115
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
253116
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
253117
+  (0.0ms) DELETE FROM "users";
253118
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253119
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253120
+  (0.0ms) DELETE FROM "notifiable_apps";
253121
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253122
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253123
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253124
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253125
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253126
+  (0.0ms) DELETE FROM "notifiable_notifications";
253127
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253128
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253129
+  (0.0ms) DELETE FROM "notifiable_statuses";
253130
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253131
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253132
+  (0.5ms) rollback transaction
253133
+  (0.1ms) begin transaction
253134
+  (0.1ms) SAVEPOINT active_record_1
253135
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
253136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253137
+  (0.0ms) SAVEPOINT active_record_1
253138
+ 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, 01 May 2014 00:02:01 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
253139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253140
+  (0.0ms) SAVEPOINT active_record_1
253141
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
253142
+ 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, 01 May 2014 00:02:01 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["user_id", 1]]
253143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253144
+  (0.0ms) SAVEPOINT active_record_1
253145
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
253146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253147
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253148
+  (0.0ms) DELETE FROM "users";
253149
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253150
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253151
+  (0.0ms) DELETE FROM "notifiable_apps";
253152
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253153
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253154
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253155
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253156
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253157
+  (0.0ms) DELETE FROM "notifiable_notifications";
253158
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253159
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253160
+  (0.0ms) DELETE FROM "notifiable_statuses";
253161
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253162
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253163
+  (0.4ms) rollback transaction
253164
+  (0.1ms) begin transaction
253165
+  (0.0ms) SAVEPOINT active_record_1
253166
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
253167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253168
+  (0.0ms) SAVEPOINT active_record_1
253169
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
253170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253171
+ Processing by Notifiable::DeviceTokensController#create as JSON
253172
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-4@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
253173
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
253174
+ Unpermitted parameters: user_email, device_token
253175
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
253176
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
253177
+  (0.0ms) SAVEPOINT active_record_1
253178
+ 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]]
253179
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
253180
+ 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, 01 May 2014 00:02:02 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253182
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
253183
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
253184
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253185
+ 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
253186
+ 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]]
253187
+  (0.0ms) DELETE FROM "users";
253188
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253189
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253190
+  (0.0ms) DELETE FROM "notifiable_apps";
253191
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253192
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253193
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253194
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253195
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253196
+  (0.0ms) DELETE FROM "notifiable_notifications";
253197
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253198
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253199
+  (0.0ms) DELETE FROM "notifiable_statuses";
253200
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253201
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253202
+  (0.5ms) rollback transaction
253203
+  (0.1ms) begin transaction
253204
+  (0.1ms) SAVEPOINT active_record_1
253205
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
253206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253207
+  (0.1ms) SAVEPOINT active_record_1
253208
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253210
+  (0.0ms) SAVEPOINT active_record_1
253211
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
253212
+ 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, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253214
+ 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
253215
+ Processing by Notifiable::DeviceTokensController#create as JSON
253216
+ Parameters: {"token"=>"ABCD4", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD4", "provider"=>"mpns"}}
253217
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
253218
+ Unpermitted parameters: device_token
253219
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
253220
+  (0.0ms) SAVEPOINT active_record_1
253221
+ 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]]
253222
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
253223
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253225
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
253226
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
253227
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
253228
+  (0.0ms) DELETE FROM "users";
253229
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253230
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253231
+  (0.0ms) DELETE FROM "notifiable_apps";
253232
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253233
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253234
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253235
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253236
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253237
+  (0.0ms) DELETE FROM "notifiable_notifications";
253238
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253239
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253240
+  (0.0ms) DELETE FROM "notifiable_statuses";
253241
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253242
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253243
+  (0.5ms) rollback transaction
253244
+  (0.1ms) begin transaction
253245
+  (0.0ms) SAVEPOINT active_record_1
253246
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
253247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253248
+ Processing by Notifiable::DeviceTokensController#create as JSON
253249
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-6@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
253250
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
253251
+ Unpermitted parameters: user_email, device_token
253252
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
253253
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
253254
+  (0.0ms) SAVEPOINT active_record_1
253255
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
253256
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
253257
+ Completed 422 Unprocessable Entity in 10ms (Views: 0.2ms | ActiveRecord: 0.3ms)
253258
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
253259
+  (0.3ms) DELETE FROM "users";
253260
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253261
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
253262
+  (0.1ms) DELETE FROM "notifiable_apps";
253263
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253264
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253265
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
253266
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253267
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253268
+  (0.0ms) DELETE FROM "notifiable_notifications";
253269
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253270
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253271
+  (0.0ms) DELETE FROM "notifiable_statuses";
253272
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253273
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253274
+  (0.5ms) rollback transaction
253275
+  (0.1ms) begin transaction
253276
+  (0.1ms) SAVEPOINT active_record_1
253277
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
253278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253279
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
253280
+ Parameters: {"id"=>"59", "user_email"=>"person-7@example.com", "device_token"=>{"id"=>"59"}}
253281
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
253282
+ Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
253283
+  (0.0ms) SAVEPOINT active_record_1
253284
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
253285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253286
+  (0.0ms) SAVEPOINT active_record_1
253287
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253289
+  (0.0ms) SAVEPOINT active_record_1
253290
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
253291
+ 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, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 2]]
253292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253293
+ 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
253294
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
253295
+  (0.1ms) DELETE FROM "users";
253296
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253297
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
253298
+  (0.0ms) DELETE FROM "notifiable_apps";
253299
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253300
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253301
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253302
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253303
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253304
+  (0.1ms) DELETE FROM "notifiable_notifications";
253305
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253306
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253307
+  (0.1ms) DELETE FROM "notifiable_statuses";
253308
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253309
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253310
+  (0.5ms) rollback transaction
253311
+  (0.0ms) begin transaction
253312
+  (0.0ms) SAVEPOINT active_record_1
253313
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
253314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253315
+  (0.0ms) SAVEPOINT active_record_1
253316
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253317
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253318
+  (0.0ms) SAVEPOINT active_record_1
253319
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
253320
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253322
+ 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
253323
+  (0.0ms) SAVEPOINT active_record_1
253324
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253326
+ Processing by Notifiable::DeviceTokensController#create as JSON
253327
+ Parameters: {"token"=>"ABCD6", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-9@example.com", "device_token"=>{"token"=>"ABCD6", "provider"=>"mock", "app_id"=>"2"}}
253328
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
253329
+ Unpermitted parameters: user_email, device_token
253330
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
253331
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
253332
+  (0.0ms) SAVEPOINT active_record_1
253333
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
253334
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD6' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
253335
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253337
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.6ms)
253338
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
253339
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253340
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
253341
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
253342
+  (0.1ms) DELETE FROM "users";
253343
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253344
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
253345
+  (0.0ms) DELETE FROM "notifiable_apps";
253346
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253347
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253348
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253349
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253350
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253351
+  (0.1ms) DELETE FROM "notifiable_notifications";
253352
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253353
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253354
+  (0.1ms) DELETE FROM "notifiable_statuses";
253355
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253356
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253357
+  (0.6ms) rollback transaction
253358
+  (0.1ms) begin transaction
253359
+  (0.1ms) SAVEPOINT active_record_1
253360
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
253361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253362
+  (0.1ms) SAVEPOINT active_record_1
253363
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253365
+  (0.0ms) SAVEPOINT active_record_1
253366
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
253367
+ 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, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253369
+ 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
253370
+  (0.0ms) SAVEPOINT active_record_1
253371
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
253372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253373
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
253374
+ Parameters: {"id"=>"1", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"1"}}
253375
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
253376
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
253377
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
253378
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
253379
+ Filter chain halted as :ensure_authorized! rendered or redirected
253380
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
253381
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
253382
+  (0.1ms) DELETE FROM "users";
253383
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253384
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
253385
+  (0.0ms) DELETE FROM "notifiable_apps";
253386
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253387
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253388
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253389
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253390
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253391
+  (0.1ms) DELETE FROM "notifiable_notifications";
253392
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253393
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253394
+  (0.0ms) DELETE FROM "notifiable_statuses";
253395
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253396
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253397
+  (0.4ms) rollback transaction
253398
+  (0.0ms) begin transaction
253399
+  (0.0ms) SAVEPOINT active_record_1
253400
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
253401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253402
+  (0.1ms) SAVEPOINT active_record_1
253403
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253405
+  (0.0ms) SAVEPOINT active_record_1
253406
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
253407
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253409
+ 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
253410
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
253411
+ Parameters: {"id"=>"1", "user_email"=>"person-12@example.com", "device_token"=>{"id"=>"1"}}
253412
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
253413
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
253414
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
253415
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
253416
+  (0.0ms) SAVEPOINT active_record_1
253417
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
253418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253419
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
253420
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
253421
+  (0.0ms) DELETE FROM "users";
253422
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253423
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253424
+  (0.0ms) DELETE FROM "notifiable_apps";
253425
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253426
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253427
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253428
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253429
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253430
+  (0.1ms) DELETE FROM "notifiable_notifications";
253431
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253432
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253433
+  (0.0ms) DELETE FROM "notifiable_statuses";
253434
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253435
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253436
+  (0.5ms) rollback transaction
253437
+  (0.1ms) begin transaction
253438
+  (0.0ms) SAVEPOINT active_record_1
253439
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
253440
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253441
+  (0.0ms) SAVEPOINT active_record_1
253442
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253444
+  (0.0ms) SAVEPOINT active_record_1
253445
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
253446
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253448
+ 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
253449
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
253450
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
253451
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
253452
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
253453
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
253454
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
253455
+ Filter chain halted as :ensure_authorized! rendered or redirected
253456
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
253457
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
253458
+  (0.0ms) DELETE FROM "users";
253459
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253460
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253461
+  (0.0ms) DELETE FROM "notifiable_apps";
253462
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253463
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253464
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253465
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253466
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253467
+  (0.1ms) DELETE FROM "notifiable_notifications";
253468
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253469
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253470
+  (0.1ms) DELETE FROM "notifiable_statuses";
253471
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253472
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253473
+  (0.4ms) rollback transaction
253474
+  (0.0ms) begin transaction
253475
+  (0.0ms) SAVEPOINT active_record_1
253476
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253478
+ Processing by Notifiable::DeviceTokensController#create as JSON
253479
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
253480
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
253481
+ Unpermitted parameters: device_token
253482
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
253483
+  (0.0ms) SAVEPOINT active_record_1
253484
+ 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]]
253485
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
253486
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253488
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
253489
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
253490
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
253491
+ 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]]
253492
+  (0.0ms) SELECT COUNT(*) FROM "users"
253493
+  (0.1ms) DELETE FROM "users";
253494
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253495
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253496
+  (0.0ms) DELETE FROM "notifiable_apps";
253497
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253498
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253499
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253500
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253501
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253502
+  (0.0ms) DELETE FROM "notifiable_notifications";
253503
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253504
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253505
+  (0.1ms) DELETE FROM "notifiable_statuses";
253506
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253507
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253508
+  (0.5ms) rollback transaction
253509
+  (0.1ms) begin transaction
253510
+  (0.0ms) SAVEPOINT active_record_1
253511
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
253512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253513
+  (0.0ms) SAVEPOINT active_record_1
253514
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253516
+  (0.0ms) SAVEPOINT active_record_1
253517
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
253518
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253520
+ 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
253521
+ Processing by Notifiable::DeviceTokensController#update as JSON
253522
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-14@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
253523
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
253524
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
253525
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
253526
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
253527
+ Unpermitted parameters: user_email, device_token
253528
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
253529
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
253530
+  (0.0ms) SAVEPOINT active_record_1
253531
+ 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]]
253532
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
253533
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253535
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
253536
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
253537
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
253538
+  (0.1ms) DELETE FROM "users";
253539
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253540
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253541
+  (0.0ms) DELETE FROM "notifiable_apps";
253542
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253543
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253544
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253545
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253546
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253547
+  (0.1ms) DELETE FROM "notifiable_notifications";
253548
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253549
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253550
+  (0.0ms) DELETE FROM "notifiable_statuses";
253551
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253552
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253553
+  (0.5ms) rollback transaction
253554
+  (0.0ms) begin transaction
253555
+  (0.0ms) SAVEPOINT active_record_1
253556
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253558
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
253559
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
253560
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
253561
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
253562
+  (0.1ms) DELETE FROM "users";
253563
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253564
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253565
+  (0.0ms) DELETE FROM "notifiable_apps";
253566
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253567
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253568
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
253569
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253570
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253571
+  (0.0ms) DELETE FROM "notifiable_notifications";
253572
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253573
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253574
+  (0.0ms) DELETE FROM "notifiable_statuses";
253575
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253576
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253577
+  (0.3ms) rollback transaction
253578
+  (0.1ms) begin transaction
253579
+  (0.0ms) SAVEPOINT active_record_1
253580
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253582
+  (0.0ms) SAVEPOINT active_record_1
253583
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253585
+  (0.0ms) SAVEPOINT active_record_1
253586
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
253587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253588
+  (0.0ms) SAVEPOINT active_record_1
253589
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253591
+  (0.0ms) SAVEPOINT active_record_1
253592
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
253593
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253595
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
253596
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253597
+  (0.0ms) SAVEPOINT active_record_1
253598
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 1], ["status", 200]]
253599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253600
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
253601
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
253602
+  (0.0ms) DELETE FROM "users";
253603
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253604
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253605
+  (0.0ms) DELETE FROM "notifiable_apps";
253606
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253607
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253608
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253609
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253610
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253611
+  (0.1ms) DELETE FROM "notifiable_notifications";
253612
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253613
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253614
+  (0.0ms) DELETE FROM "notifiable_statuses";
253615
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253616
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253617
+  (0.5ms) rollback transaction
253618
+  (0.1ms) begin transaction
253619
+  (0.0ms) SAVEPOINT active_record_1
253620
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253622
+  (0.0ms) SAVEPOINT active_record_1
253623
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253625
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
253626
+  (0.1ms) DELETE FROM "users";
253627
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253628
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253629
+  (0.0ms) DELETE FROM "notifiable_apps";
253630
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253631
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253632
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
253633
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253634
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253635
+  (0.0ms) DELETE FROM "notifiable_notifications";
253636
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253637
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253638
+  (0.0ms) DELETE FROM "notifiable_statuses";
253639
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253640
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253641
+  (0.5ms) rollback transaction
253642
+  (0.1ms) begin transaction
253643
+  (0.1ms) SAVEPOINT active_record_1
253644
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253645
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253646
+  (0.1ms) SAVEPOINT active_record_1
253647
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253648
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253649
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
253650
+  (0.1ms) DELETE FROM "users";
253651
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253652
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
253653
+  (0.1ms) DELETE FROM "notifiable_apps";
253654
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253655
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253656
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
253657
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253658
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253659
+  (0.0ms) DELETE FROM "notifiable_notifications";
253660
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253661
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253662
+  (0.1ms) DELETE FROM "notifiable_statuses";
253663
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253664
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253665
+  (0.5ms) rollback transaction
253666
+  (0.1ms) begin transaction
253667
+  (0.1ms) SAVEPOINT active_record_1
253668
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253670
+  (0.0ms) SAVEPOINT active_record_1
253671
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253673
+  (0.0ms) SAVEPOINT active_record_1
253674
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["notification_id", 1]]
253675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253676
+  (0.0ms) SAVEPOINT active_record_1
253677
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
253678
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
253679
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
253680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253681
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
253682
+  (0.1ms) DELETE FROM "users";
253683
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253684
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
253685
+  (0.0ms) DELETE FROM "notifiable_apps";
253686
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253687
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253688
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
253689
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253690
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253691
+  (0.0ms) DELETE FROM "notifiable_notifications";
253692
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253693
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253694
+  (0.0ms) DELETE FROM "notifiable_statuses";
253695
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253696
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253697
+  (0.5ms) rollback transaction
253698
+  (0.1ms) begin transaction
253699
+  (0.0ms) SAVEPOINT active_record_1
253700
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253702
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
253703
+  (0.0ms) SAVEPOINT active_record_1
253704
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253706
+  (0.0ms) SAVEPOINT active_record_1
253707
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253709
+  (0.0ms) SAVEPOINT active_record_1
253710
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
253711
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253712
+  (0.0ms) SAVEPOINT active_record_1
253713
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253715
+  (0.0ms) SAVEPOINT active_record_1
253716
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
253717
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253719
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253720
+  (0.0ms) SAVEPOINT active_record_1
253721
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
253722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253723
+  (0.1ms) SAVEPOINT active_record_1
253724
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253726
+  (0.0ms) SAVEPOINT active_record_1
253727
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
253728
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 2]]
253729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253730
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
253731
+  (0.0ms) SAVEPOINT active_record_1
253732
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
253733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253734
+  (0.0ms) SAVEPOINT active_record_1
253735
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
253736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253737
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
253738
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
253739
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
253740
+  (0.0ms) SAVEPOINT active_record_1
253741
+ 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]]
253742
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil]]
253743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253744
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
253745
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
253746
+ 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]]
253747
+ 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]]
253748
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253749
+ 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]]
253750
+ 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]]
253751
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
253752
+  (0.0ms) DELETE FROM "users";
253753
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253754
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
253755
+  (0.0ms) DELETE FROM "notifiable_apps";
253756
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253757
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253758
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253759
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253760
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253761
+  (0.0ms) DELETE FROM "notifiable_notifications";
253762
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253763
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253764
+  (0.0ms) DELETE FROM "notifiable_statuses";
253765
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253766
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253767
+  (0.5ms) rollback transaction
253768
+  (0.1ms) begin transaction
253769
+  (0.1ms) SAVEPOINT active_record_1
253770
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253772
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
253773
+  (0.1ms) SAVEPOINT active_record_1
253774
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253776
+  (0.0ms) SAVEPOINT active_record_1
253777
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253779
+  (0.0ms) SAVEPOINT active_record_1
253780
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
253781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253782
+  (0.1ms) SAVEPOINT active_record_1
253783
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253785
+  (0.0ms) SAVEPOINT active_record_1
253786
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
253787
+ 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, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253789
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253790
+  (0.0ms) SAVEPOINT active_record_1
253791
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253793
+  (0.0ms) SAVEPOINT active_record_1
253794
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253796
+  (0.0ms) SAVEPOINT active_record_1
253797
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
253798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253799
+  (0.0ms) SAVEPOINT active_record_1
253800
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253802
+  (0.1ms) SAVEPOINT active_record_1
253803
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
253804
+ 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, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 2]]
253805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253806
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
253807
+  (0.0ms) SAVEPOINT active_record_1
253808
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
253809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253810
+  (0.0ms) SAVEPOINT active_record_1
253811
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
253812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253813
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
253814
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
253815
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
253816
+  (0.0ms) SAVEPOINT active_record_1
253817
+ 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]]
253818
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil]]
253819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253820
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
253821
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
253822
+  (0.0ms) SAVEPOINT active_record_1
253823
+ 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]]
253824
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil]]
253825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253826
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
253827
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
253828
+ 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]]
253829
+ 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]]
253830
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253831
+ 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]]
253832
+ 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]]
253833
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
253834
+  (0.0ms) DELETE FROM "users";
253835
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253836
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
253837
+  (0.0ms) DELETE FROM "notifiable_apps";
253838
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253839
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253840
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253841
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253842
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253843
+  (0.0ms) DELETE FROM "notifiable_notifications";
253844
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253845
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253846
+  (0.0ms) DELETE FROM "notifiable_statuses";
253847
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253848
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253849
+  (0.5ms) rollback transaction
253850
+  (0.1ms) begin transaction
253851
+  (0.0ms) SAVEPOINT active_record_1
253852
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253854
+  (0.0ms) SAVEPOINT active_record_1
253855
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
253856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253857
+  (0.0ms) SAVEPOINT active_record_1
253858
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253860
+  (0.0ms) SAVEPOINT active_record_1
253861
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
253862
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :sms], ["token", "ABCD16"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253864
+  (0.0ms) SAVEPOINT active_record_1
253865
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253867
+  (0.0ms) SAVEPOINT active_record_1
253868
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253870
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
253871
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
253872
+  (0.0ms) DELETE FROM "users";
253873
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253874
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253875
+  (0.0ms) DELETE FROM "notifiable_apps";
253876
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253877
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253878
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253879
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253880
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253881
+  (0.0ms) DELETE FROM "notifiable_notifications";
253882
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253883
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253884
+  (0.0ms) DELETE FROM "notifiable_statuses";
253885
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253886
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253887
+  (0.5ms) rollback transaction
253888
+  (0.1ms) begin transaction
253889
+  (0.0ms) SAVEPOINT active_record_1
253890
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253892
+  (0.0ms) SAVEPOINT active_record_1
253893
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253895
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
253896
+  (0.1ms) DELETE FROM "users";
253897
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253898
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253899
+  (0.0ms) DELETE FROM "notifiable_apps";
253900
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253901
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253902
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
253903
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253904
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253905
+  (0.0ms) DELETE FROM "notifiable_notifications";
253906
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253907
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253908
+  (0.0ms) DELETE FROM "notifiable_statuses";
253909
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253910
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253911
+  (0.4ms) rollback transaction
253912
+  (0.0ms) begin transaction
253913
+  (0.0ms) SAVEPOINT active_record_1
253914
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
253915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253916
+  (0.0ms) SAVEPOINT active_record_1
253917
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253919
+  (0.0ms) SAVEPOINT active_record_1
253920
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
253921
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253922
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253923
+ 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
253924
+ 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]]
253925
+  (0.0ms) SAVEPOINT active_record_1
253926
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
253928
+  (0.0ms) SAVEPOINT active_record_1
253929
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
253930
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253931
+ Processing by Notifiable::NotificationsController#opened as JSON
253932
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-22@example.com", "notification"=>{}}
253933
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
253934
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
253935
+ 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]]
253936
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
253937
+  (0.0ms) SAVEPOINT active_record_1
253938
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
253939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253940
+ 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]]
253941
+  (0.0ms) SAVEPOINT active_record_1
253942
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil]]
253943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253944
+ Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
253945
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
253946
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
253947
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
253948
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
253949
+  (0.0ms) DELETE FROM "users";
253950
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253951
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
253952
+  (0.0ms) DELETE FROM "notifiable_apps";
253953
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253954
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
253955
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
253956
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253957
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
253958
+  (0.0ms) DELETE FROM "notifiable_notifications";
253959
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253960
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
253961
+  (0.0ms) DELETE FROM "notifiable_statuses";
253962
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
253963
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
253964
+  (0.5ms) rollback transaction
253965
+  (0.1ms) begin transaction
253966
+  (0.1ms) SAVEPOINT active_record_1
253967
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
253968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253969
+  (0.0ms) SAVEPOINT active_record_1
253970
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253972
+  (0.0ms) SAVEPOINT active_record_1
253973
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
253974
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
253975
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253976
+ 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
253977
+ 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]]
253978
+  (0.1ms) SAVEPOINT active_record_1
253979
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253981
+  (0.1ms) SAVEPOINT active_record_1
253982
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253984
+  (0.0ms) SAVEPOINT active_record_1
253985
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD19' LIMIT 1
253986
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD19"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
253987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253988
+  (0.1ms) SAVEPOINT active_record_1
253989
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
253990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253991
+ Processing by Notifiable::NotificationsController#opened as JSON
253992
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
253993
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1
253994
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
253995
+ 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]]
253996
+  (0.0ms) SAVEPOINT active_record_1
253997
+ SQL (0.0ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
253998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253999
+ 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]]
254000
+  (0.0ms) SAVEPOINT active_record_1
254001
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil]]
254002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
254003
+ Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
254004
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
254005
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
254006
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
254007
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
254008
+  (0.0ms) DELETE FROM "users";
254009
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
254010
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
254011
+  (0.0ms) DELETE FROM "notifiable_apps";
254012
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
254013
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
254014
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
254015
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
254016
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
254017
+  (0.0ms) DELETE FROM "notifiable_notifications";
254018
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
254019
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
254020
+  (0.0ms) DELETE FROM "notifiable_statuses";
254021
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
254022
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
254023
+  (0.5ms) rollback transaction
254024
+  (0.0ms) begin transaction
254025
+  (0.0ms) SAVEPOINT active_record_1
254026
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
254027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
254028
+  (0.0ms) SAVEPOINT active_record_1
254029
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
254030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
254031
+  (0.0ms) SAVEPOINT active_record_1
254032
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD20' LIMIT 1
254033
+ SQL (0.1ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD20"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
254034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
254035
+ 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
254036
+ 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]]
254037
+  (0.0ms) SAVEPOINT active_record_1
254038
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
254039
+  (0.0ms) RELEASE SAVEPOINT active_record_1
254040
+  (0.0ms) SAVEPOINT active_record_1
254041
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
254042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
254043
+  (0.0ms) SAVEPOINT active_record_1
254044
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-25@example.com"]]
254045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
254046
+ Processing by Notifiable::NotificationsController#opened as JSON
254047
+ Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-25@example.com", "notification"=>{}}
254048
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
254049
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-25@example.com' LIMIT 1
254050
+ 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]]
254051
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
254052
+ Filter chain halted as :check_authorisation! rendered or redirected
254053
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
254054
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
254055
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
254056
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
254057
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
254058
+  (0.0ms) DELETE FROM "users";
254059
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
254060
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
254061
+  (0.0ms) DELETE FROM "notifiable_apps";
254062
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
254063
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
254064
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
254065
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
254066
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
254067
+  (0.0ms) DELETE FROM "notifiable_notifications";
254068
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
254069
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
254070
+  (0.0ms) DELETE FROM "notifiable_statuses";
254071
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
254072
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
254073
+  (0.5ms) rollback transaction