notifiable-rails 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78bd692090aa8a463035429ad47cbf26ccdde0fc
4
- data.tar.gz: a765c217229226d030777e682bde334f8749133d
3
+ metadata.gz: b843067cda62548261968c12431aad83391c2d75
4
+ data.tar.gz: 5e5e619c4d7c11b68bcc2f97aab583f36a8d9178
5
5
  SHA512:
6
- metadata.gz: 1d09fd00526e5f27c0c53ca7330b4fc428f13f6261d874316a5defa212f7206b3c4a5df05650f427604ca8cba4e86fb4ad1672c938c4f9566b5e9f935f3b8bc2
7
- data.tar.gz: ed3985a0068c4adeb9d1c6b45fa8e379d1815172e383144395536420b5c9d6f51ffd33380ba54f7abbffdb5298cdad2ab87d45f0efc7a53b065bd3268393b81e
6
+ metadata.gz: f06f4d7858fe9c8c93741f86fd5617185fa32c23010ff4693c73999bad5f2587dcf13484ba35a664c420f036be1a70e5708489529d00d236d60c7051eee1d1b9
7
+ data.tar.gz: b008058ba0f76d25db7f11bd9a2076eb95f7ce0be99e995f39d76d72f3898b4dcc167d164429917ccef6e0f2a8e7a29dc78c5f5838effc14782706ab6fe446a8
@@ -7,22 +7,26 @@ module Notifiable
7
7
  @config = config
8
8
  end
9
9
 
10
- def add(notification, user)
11
- user.device_tokens.each do |d|
12
- provider = d.provider.to_sym
13
-
14
- unless @notifiers[provider]
15
- clazz = Notifiable.notifier_classes[provider]
16
- raise "Notifier #{provider} not configured" unless clazz
17
- @notifiers[provider] = clazz.new
18
- @notifiers[provider].env = Rails.env
19
- @config[provider].each_pair {|key, value| @notifiers[provider].send("#{key}=", value) if @notifiers[provider].methods.include?("#{key}=".to_sym) } if @config[provider]
20
- end
21
-
22
- notifier = @notifiers[provider]
23
- if d.is_valid? && !notifier.nil?
24
- notifier.send_notification(notification, d)
25
- end
10
+ def add_notifiable(notification, notifiable)
11
+ notifiable.device_tokens.each do |d|
12
+ self.add_device_token(notification, d)
13
+ end
14
+ end
15
+
16
+ def add_device_token(notification, d)
17
+ provider = d.provider.to_sym
18
+
19
+ unless @notifiers[provider]
20
+ clazz = Notifiable.notifier_classes[provider]
21
+ raise "Notifier #{provider} not configured" unless clazz
22
+ @notifiers[provider] = clazz.new
23
+ @notifiers[provider].env = Rails.env
24
+ @config[provider].each_pair {|key, value| @notifiers[provider].send("#{key}=", value) if @notifiers[provider].methods.include?("#{key}=".to_sym) } if @config[provider]
25
+ end
26
+
27
+ notifier = @notifiers[provider]
28
+ if d.is_valid? && !notifier.nil?
29
+ notifier.send_notification(notification, d)
26
30
  end
27
31
  end
28
32
 
@@ -4,7 +4,7 @@ module Notifiable
4
4
 
5
5
  def send_notification(notification)
6
6
  Notifiable.batch do |b|
7
- b.add(notification, self)
7
+ b.add_notifiable(notification, self)
8
8
  end
9
9
  end
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0"
3
3
  end
data/spec/batch_spec.rb CHANGED
@@ -4,13 +4,31 @@ describe Notifiable::Batch do
4
4
  let(:user1) { FactoryGirl.create(:user) }
5
5
  let(:notification) { Notifiable::Notification.new(:message => "Test message")}
6
6
 
7
+ it "adds a notifiable object" do
8
+ FactoryGirl.create(:mock_token, :provider => :configurable_mock, :user_id => user1.id)
9
+
10
+ b = Notifiable::Batch.new
11
+ b.add_notifiable(notification, user1)
12
+
13
+ Notifiable::NotificationStatus.count == 1
14
+ end
15
+
16
+ it "adds a device token" do
17
+ FactoryGirl.create(:mock_token, :provider => :configurable_mock, :user_id => user1.id)
18
+
19
+ b = Notifiable::Batch.new
20
+ b.add_device_token(notification, user1.device_tokens.first)
21
+
22
+ Notifiable::NotificationStatus.count == 1
23
+ end
24
+
7
25
  it "configures the provider" do
8
26
  FactoryGirl.create(:mock_token, :provider => :configurable_mock, :user_id => user1.id)
9
27
 
10
28
  config = {:configurable_mock => {:use_sandbox => true}}
11
29
 
12
30
  b = Notifiable::Batch.new(config)
13
- b.add(notification, user1)
31
+ b.add_notifiable(notification, user1)
14
32
 
15
33
  b.notifiers[:configurable_mock].env.should eql Rails.env
16
34
  b.notifiers[:configurable_mock].use_sandbox.should == true
@@ -8,8 +8,8 @@ describe Notifiable do
8
8
 
9
9
  it "sends two identical push notifications" do
10
10
  Notifiable.batch do |b|
11
- b.add(notification1, user1)
12
- b.add(notification1, user2)
11
+ b.add_notifiable(notification1, user1)
12
+ b.add_notifiable(notification1, user2)
13
13
  end
14
14
 
15
15
  Notifiable::NotificationStatus.count.should == 2
@@ -26,8 +26,8 @@ describe Notifiable do
26
26
 
27
27
  it "sends two different push notifications" do
28
28
  Notifiable.batch do |b|
29
- b.add(notification1, user1)
30
- b.add(notification2, user2)
29
+ b.add_notifiable(notification1, user1)
30
+ b.add_notifiable(notification2, user2)
31
31
  end
32
32
 
33
33
  Notifiable::NotificationStatus.count.should == 2
@@ -138161,3 +138161,2447 @@ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
138161
138161
   (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138162
138162
   (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138163
138163
   (0.5ms) rollback transaction
138164
+  (0.3ms) begin transaction
138165
+  (0.0ms) SAVEPOINT active_record_1
138166
+ SQL (4.4ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00]]
138167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138168
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
138169
+  (0.4ms) DELETE FROM "users";
138170
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138171
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138172
+  (1.1ms) DELETE FROM "notifiable_device_tokens";
138173
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138174
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138175
+  (0.0ms) DELETE FROM "notifiable_notifications";
138176
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138177
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138178
+  (0.3ms) DELETE FROM "notifiable_notification_statuses";
138179
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138180
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138181
+  (0.4ms) rollback transaction
138182
+  (0.0ms) begin transaction
138183
+  (0.0ms) SAVEPOINT active_record_1
138184
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00]]
138185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138186
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
138187
+  (0.1ms) DELETE FROM "users";
138188
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138189
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138190
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
138191
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138192
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138193
+  (0.0ms) DELETE FROM "notifiable_notifications";
138194
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138195
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138196
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138197
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138198
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138199
+  (0.3ms) rollback transaction
138200
+  (0.0ms) begin transaction
138201
+  (0.1ms) SAVEPOINT active_record_1
138202
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
138203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138204
+  (0.1ms) SAVEPOINT active_record_1
138205
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
138206
+ SQL (0.9ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138208
+  (0.0ms) DELETE FROM "users";
138209
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138210
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138211
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138212
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138213
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138214
+  (0.1ms) DELETE FROM "notifiable_notifications";
138215
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138216
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138217
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138218
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138219
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138220
+  (0.4ms) rollback transaction
138221
+  (0.0ms) begin transaction
138222
+  (0.2ms) DELETE FROM "users";
138223
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138224
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138225
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
138226
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138227
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138228
+  (0.0ms) DELETE FROM "notifiable_notifications";
138229
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138230
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138231
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138232
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138233
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138234
+  (0.4ms) rollback transaction
138235
+  (0.0ms) begin transaction
138236
+  (0.0ms) SAVEPOINT active_record_1
138237
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
138238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138239
+  (0.0ms) SAVEPOINT active_record_1
138240
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
138241
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138243
+ 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
138244
+  (0.0ms) SAVEPOINT active_record_1
138245
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
138246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138247
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
138248
+ Parameters: {"token"=>"ABCD2", "user_email"=>"person-4@example.com", "device_token"=>{"token"=>"ABCD2"}}
138249
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
138250
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138251
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
138252
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
138253
+ Completed 401 Unauthorized in 3ms (ActiveRecord: 0.3ms)
138254
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2'
138255
+  (0.0ms) DELETE FROM "users";
138256
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138257
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138258
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138259
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138260
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138261
+  (0.1ms) DELETE FROM "notifiable_notifications";
138262
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138263
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138264
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138265
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138266
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138267
+  (0.5ms) rollback transaction
138268
+  (0.1ms) begin transaction
138269
+ Processing by Notifiable::DeviceTokensController#create as JSON
138270
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
138271
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138272
+ Unpermitted parameters: device_token
138273
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
138274
+  (0.0ms) SAVEPOINT active_record_1
138275
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138276
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00]]
138277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138278
+ Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
138279
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138280
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138281
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138282
+  (0.0ms) SELECT COUNT(*) FROM "users"
138283
+  (0.1ms) DELETE FROM "users";
138284
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138285
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138286
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138287
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138288
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138289
+  (0.1ms) DELETE FROM "notifiable_notifications";
138290
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138291
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138292
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138293
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138294
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138295
+  (0.4ms) rollback transaction
138296
+  (0.1ms) begin transaction
138297
+  (0.0ms) SAVEPOINT active_record_1
138298
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
138299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138300
+ Processing by Notifiable::DeviceTokensController#create as JSON
138301
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-5@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
138302
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
138303
+ Unpermitted parameters: user_email, device_token
138304
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
138305
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
138306
+  (0.0ms) SAVEPOINT active_record_1
138307
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138308
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138310
+ Completed 200 OK in 3ms (ActiveRecord: 0.8ms)
138311
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138312
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138313
+ 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
138314
+  (0.1ms) DELETE FROM "users";
138315
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138316
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138317
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138318
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138319
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138320
+  (0.1ms) DELETE FROM "notifiable_notifications";
138321
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138322
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138323
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138324
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138325
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138326
+  (0.5ms) rollback transaction
138327
+  (0.1ms) begin transaction
138328
+  (0.1ms) SAVEPOINT active_record_1
138329
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
138330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138331
+ Processing by Notifiable::DeviceTokensController#create as JSON
138332
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-6@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
138333
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138334
+ Unpermitted parameters: user_email, device_token
138335
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
138336
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
138337
+  (0.0ms) SAVEPOINT active_record_1
138338
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138339
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138340
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138341
+ Completed 200 OK in 4ms (ActiveRecord: 0.9ms)
138342
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138343
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138344
+ 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
138345
+ 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
138346
+  (0.1ms) DELETE FROM "users";
138347
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138348
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138349
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138350
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138351
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138352
+  (0.1ms) DELETE FROM "notifiable_notifications";
138353
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138354
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138355
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138356
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138357
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138358
+  (0.5ms) rollback transaction
138359
+  (0.1ms) begin transaction
138360
+  (0.0ms) SAVEPOINT active_record_1
138361
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
138362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138363
+  (0.0ms) SAVEPOINT active_record_1
138364
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
138365
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138367
+ 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
138368
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
138369
+ Parameters: {"token"=>"ABCD3", "device_token"=>{"token"=>"ABCD3"}}
138370
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
138371
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
138372
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
138373
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
138374
+  (0.0ms) DELETE FROM "users";
138375
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138376
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138377
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138378
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138379
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138380
+  (0.1ms) DELETE FROM "notifiable_notifications";
138381
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138382
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138383
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138384
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138385
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138386
+  (0.5ms) rollback transaction
138387
+  (0.0ms) begin transaction
138388
+  (0.0ms) SAVEPOINT active_record_1
138389
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
138390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138391
+  (0.0ms) SAVEPOINT active_record_1
138392
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
138393
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138395
+ 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
138396
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
138397
+ Parameters: {"token"=>"ABCD4", "user_email"=>"person-8@example.com", "device_token"=>{"token"=>"ABCD4"}}
138398
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
138399
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138400
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
138401
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
138402
+  (0.0ms) SAVEPOINT active_record_1
138403
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
138404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138405
+ Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
138406
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
138407
+  (0.1ms) DELETE FROM "users";
138408
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138409
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138410
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138411
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138412
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138413
+  (0.1ms) DELETE FROM "notifiable_notifications";
138414
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138415
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138416
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138417
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138418
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138419
+  (0.4ms) rollback transaction
138420
+  (0.0ms) begin transaction
138421
+  (0.0ms) SAVEPOINT active_record_1
138422
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
138423
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD5"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00]]
138424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138425
+  (0.0ms) SAVEPOINT active_record_1
138426
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
138427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138428
+ Processing by Notifiable::DeviceTokensController#create as JSON
138429
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-9@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
138430
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
138431
+ Unpermitted parameters: user_email, device_token
138432
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
138433
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
138434
+  (0.0ms) SAVEPOINT active_record_1
138435
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
138436
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00]]
138437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138438
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
138439
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138440
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138441
+ 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
138442
+  (0.0ms) DELETE FROM "users";
138443
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138444
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138445
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
138446
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138447
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138448
+  (0.1ms) DELETE FROM "notifiable_notifications";
138449
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138450
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138451
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138452
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138453
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138454
+  (0.5ms) rollback transaction
138455
+  (0.1ms) begin transaction
138456
+  (0.0ms) SAVEPOINT active_record_1
138457
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
138458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138459
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
138460
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-10@example.com", "device_token"=>{"token"=>"ZXY987"}}
138461
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
138462
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138463
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
138464
+  (0.0ms) SAVEPOINT active_record_1
138465
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
138466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138467
+  (0.0ms) SAVEPOINT active_record_1
138468
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
138469
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 2]]
138470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138471
+ 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
138472
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
138473
+  (0.0ms) DELETE FROM "users";
138474
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138475
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138476
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138477
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138478
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138479
+  (0.1ms) DELETE FROM "notifiable_notifications";
138480
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138481
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138482
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138483
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138484
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138485
+  (0.3ms) rollback transaction
138486
+  (0.1ms) begin transaction
138487
+  (0.1ms) SAVEPOINT active_record_1
138488
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00]]
138489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138490
+  (0.1ms) SAVEPOINT active_record_1
138491
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
138492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138493
+  (0.0ms) SAVEPOINT active_record_1
138494
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
138495
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138497
+  (0.0ms) DELETE FROM "users";
138498
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138499
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138500
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138501
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138502
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138503
+  (0.0ms) DELETE FROM "notifiable_notifications";
138504
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138505
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138506
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138507
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138508
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138509
+  (0.4ms) rollback transaction
138510
+  (0.1ms) begin transaction
138511
+  (0.1ms) SAVEPOINT active_record_1
138512
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00]]
138513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138514
+  (0.0ms) SAVEPOINT active_record_1
138515
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
138516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138517
+  (0.0ms) SAVEPOINT active_record_1
138518
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
138519
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138521
+  (0.0ms) DELETE FROM "users";
138522
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138523
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138524
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138525
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138526
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138527
+  (0.0ms) DELETE FROM "notifiable_notifications";
138528
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138529
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138530
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138531
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138532
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138533
+  (0.4ms) rollback transaction
138534
+  (0.1ms) begin transaction
138535
+  (0.0ms) SAVEPOINT active_record_1
138536
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
138537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138538
+  (0.0ms) SAVEPOINT active_record_1
138539
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
138540
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138542
+  (0.0ms) SAVEPOINT active_record_1
138543
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00]]
138544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138545
+  (0.0ms) DELETE FROM "users";
138546
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138547
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138548
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138549
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138550
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138551
+  (0.0ms) DELETE FROM "notifiable_notifications";
138552
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138553
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138554
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138555
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138556
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138557
+  (0.4ms) rollback transaction
138558
+  (0.0ms) begin transaction
138559
+  (0.0ms) SAVEPOINT active_record_1
138560
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
138561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138562
+  (0.1ms) SAVEPOINT active_record_1
138563
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
138564
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD9"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138566
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138567
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
138568
+  (0.0ms) DELETE FROM "users";
138569
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138570
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138571
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138572
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138573
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138574
+  (0.0ms) DELETE FROM "notifiable_notifications";
138575
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138576
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138577
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138578
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138579
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138580
+  (0.5ms) rollback transaction
138581
+  (0.1ms) begin transaction
138582
+  (0.0ms) SAVEPOINT active_record_1
138583
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
138584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138585
+  (0.0ms) SAVEPOINT active_record_1
138586
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
138587
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD10"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138589
+ 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
138590
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
138591
+  (0.0ms) DELETE FROM "users";
138592
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138593
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138594
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138595
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138596
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138597
+  (0.0ms) DELETE FROM "notifiable_notifications";
138598
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138599
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138600
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138601
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138602
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138603
+  (0.5ms) rollback transaction
138604
+  (0.1ms) begin transaction
138605
+  (0.0ms) SAVEPOINT active_record_1
138606
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
138607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138608
+  (0.0ms) SAVEPOINT active_record_1
138609
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
138610
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD11"], ["updated_at", Sat, 15 Feb 2014 07:41:20 UTC +00:00], ["user_id", 1]]
138611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138612
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138613
+  (0.0ms) DELETE FROM "users";
138614
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138615
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138616
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138617
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138618
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138619
+  (0.1ms) DELETE FROM "notifiable_notifications";
138620
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138621
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138622
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138623
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138624
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138625
+  (0.4ms) rollback transaction
138626
+  (0.3ms) begin transaction
138627
+  (0.0ms) SAVEPOINT active_record_1
138628
+ SQL (2.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00]]
138629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138630
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
138631
+  (0.1ms) DELETE FROM "users";
138632
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138633
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138634
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
138635
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138636
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138637
+  (0.0ms) DELETE FROM "notifiable_notifications";
138638
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138639
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138640
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138641
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138642
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138643
+  (6.7ms) rollback transaction
138644
+  (0.1ms) begin transaction
138645
+  (0.1ms) SAVEPOINT active_record_1
138646
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00]]
138647
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138648
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
138649
+  (0.1ms) DELETE FROM "users";
138650
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138651
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138652
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
138653
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138654
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138655
+  (0.1ms) DELETE FROM "notifiable_notifications";
138656
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138657
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138658
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138659
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138660
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138661
+  (0.4ms) rollback transaction
138662
+  (0.0ms) begin transaction
138663
+  (0.0ms) SAVEPOINT active_record_1
138664
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
138665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138666
+  (0.1ms) SAVEPOINT active_record_1
138667
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
138668
+ SQL (1.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
138669
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138670
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138671
+  (0.0ms) SAVEPOINT active_record_1
138672
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?) [["device_token_id", 1], ["status", 200]]
138673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138674
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
138675
+  (0.0ms) DELETE FROM "users";
138676
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138677
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138678
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138679
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138680
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138681
+  (0.1ms) DELETE FROM "notifiable_notifications";
138682
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138683
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138684
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138685
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138686
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138687
+  (0.5ms) rollback transaction
138688
+  (0.1ms) begin transaction
138689
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
138690
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
138691
+  (0.2ms) DELETE FROM "users";
138692
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138693
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138694
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
138695
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138696
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138697
+  (0.1ms) DELETE FROM "notifiable_notifications";
138698
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138699
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138700
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138701
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138702
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138703
+  (0.4ms) rollback transaction
138704
+  (0.1ms) begin transaction
138705
+  (0.1ms) SAVEPOINT active_record_1
138706
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00]]
138707
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138708
+  (0.0ms) SAVEPOINT active_record_1
138709
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
138710
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138711
+  (0.0ms) SAVEPOINT active_record_1
138712
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
138713
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
138714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138715
+  (0.0ms) DELETE FROM "users";
138716
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138717
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138718
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138719
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138720
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138721
+  (0.0ms) DELETE FROM "notifiable_notifications";
138722
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138723
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138724
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138725
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138726
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138727
+  (0.6ms) rollback transaction
138728
+  (0.0ms) begin transaction
138729
+  (0.0ms) SAVEPOINT active_record_1
138730
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00]]
138731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138732
+  (0.0ms) SAVEPOINT active_record_1
138733
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
138734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138735
+  (0.0ms) SAVEPOINT active_record_1
138736
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
138737
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
138738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138739
+  (0.0ms) DELETE FROM "users";
138740
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138741
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138742
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138743
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138744
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138745
+  (0.0ms) DELETE FROM "notifiable_notifications";
138746
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138747
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138748
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138749
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138750
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138751
+  (0.4ms) rollback transaction
138752
+  (0.1ms) begin transaction
138753
+  (0.0ms) SAVEPOINT active_record_1
138754
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
138755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138756
+  (0.0ms) SAVEPOINT active_record_1
138757
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
138758
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
138759
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138760
+  (0.0ms) SAVEPOINT active_record_1
138761
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00]]
138762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138763
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138764
+  (0.0ms) DELETE FROM "users";
138765
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138766
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138767
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138768
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138769
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138770
+  (0.1ms) DELETE FROM "notifiable_notifications";
138771
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138772
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138773
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138774
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138775
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138776
+  (0.4ms) rollback transaction
138777
+  (0.0ms) begin transaction
138778
+  (0.0ms) SAVEPOINT active_record_1
138779
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
138780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138781
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
138782
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-6@example.com", "device_token"=>{"token"=>"ZXY987"}}
138783
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
138784
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138785
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.2ms)
138786
+  (0.0ms) SAVEPOINT active_record_1
138787
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
138788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138789
+  (0.0ms) SAVEPOINT active_record_1
138790
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
138791
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 2]]
138792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138793
+ 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
138794
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
138795
+  (0.0ms) DELETE FROM "users";
138796
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138797
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138798
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138799
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138800
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138801
+  (0.1ms) DELETE FROM "notifiable_notifications";
138802
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138803
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138804
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138805
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138806
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138807
+  (0.5ms) rollback transaction
138808
+  (0.0ms) begin transaction
138809
+  (0.0ms) SAVEPOINT active_record_1
138810
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
138811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138812
+  (0.0ms) SAVEPOINT active_record_1
138813
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
138814
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
138815
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138816
+ 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
138817
+  (0.0ms) SAVEPOINT active_record_1
138818
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
138819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138820
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
138821
+ Parameters: {"token"=>"ABCD5", "user_email"=>"person-9@example.com", "device_token"=>{"token"=>"ABCD5"}}
138822
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
138823
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138824
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
138825
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
138826
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
138827
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
138828
+  (0.0ms) DELETE FROM "users";
138829
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138830
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138831
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138832
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138833
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138834
+  (0.0ms) DELETE FROM "notifiable_notifications";
138835
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138836
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138837
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138838
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138839
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138840
+  (0.6ms) rollback transaction
138841
+  (0.0ms) begin transaction
138842
+  (0.0ms) SAVEPOINT active_record_1
138843
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
138844
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD6"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00]]
138845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138846
+  (0.0ms) SAVEPOINT active_record_1
138847
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
138848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138849
+ Processing by Notifiable::DeviceTokensController#create as JSON
138850
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-10@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
138851
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
138852
+ Unpermitted parameters: user_email, device_token
138853
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
138854
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
138855
+  (0.0ms) SAVEPOINT active_record_1
138856
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
138857
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00]]
138858
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138859
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
138860
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138861
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138862
+ 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
138863
+  (0.1ms) DELETE FROM "users";
138864
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138865
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
138866
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
138867
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138868
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138869
+  (0.1ms) DELETE FROM "notifiable_notifications";
138870
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138871
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138872
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138873
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138874
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138875
+  (0.6ms) rollback transaction
138876
+  (0.1ms) begin transaction
138877
+  (0.0ms) SAVEPOINT active_record_1
138878
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
138879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138880
+  (0.0ms) SAVEPOINT active_record_1
138881
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
138882
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
138883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138884
+ 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
138885
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
138886
+ Parameters: {"token"=>"ABCD7", "device_token"=>{"token"=>"ABCD7"}}
138887
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
138888
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
138889
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
138890
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
138891
+  (0.1ms) DELETE FROM "users";
138892
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138893
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138894
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138895
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138896
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138897
+  (0.1ms) DELETE FROM "notifiable_notifications";
138898
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138899
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138900
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138901
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138902
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138903
+  (0.4ms) rollback transaction
138904
+  (0.0ms) begin transaction
138905
+  (0.0ms) SAVEPOINT active_record_1
138906
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
138907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138908
+ Processing by Notifiable::DeviceTokensController#create as JSON
138909
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-12@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
138910
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
138911
+ Unpermitted parameters: user_email, device_token
138912
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
138913
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
138914
+  (0.0ms) SAVEPOINT active_record_1
138915
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138916
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
138917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138918
+ Completed 200 OK in 4ms (ActiveRecord: 0.8ms)
138919
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138920
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138921
+ 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
138922
+  (0.0ms) DELETE FROM "users";
138923
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138924
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138925
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138926
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138927
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138928
+  (0.0ms) DELETE FROM "notifiable_notifications";
138929
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138930
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138931
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138932
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138933
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138934
+  (0.5ms) rollback transaction
138935
+  (0.1ms) begin transaction
138936
+  (0.1ms) SAVEPOINT active_record_1
138937
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
138938
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138939
+ Processing by Notifiable::DeviceTokensController#create as JSON
138940
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-13@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
138941
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138942
+ Unpermitted parameters: user_email, device_token
138943
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
138944
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
138945
+  (0.0ms) SAVEPOINT active_record_1
138946
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138947
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
138948
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138949
+ Completed 200 OK in 4ms (ActiveRecord: 0.9ms)
138950
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138951
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
138952
+ 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
138953
+ 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
138954
+  (0.0ms) DELETE FROM "users";
138955
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138956
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138957
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138958
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138959
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138960
+  (0.1ms) DELETE FROM "notifiable_notifications";
138961
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138962
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138963
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
138964
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138965
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138966
+  (0.4ms) rollback transaction
138967
+  (0.1ms) begin transaction
138968
+ Processing by Notifiable::DeviceTokensController#create as JSON
138969
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
138970
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138971
+ Unpermitted parameters: device_token
138972
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
138973
+  (0.0ms) SAVEPOINT active_record_1
138974
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
138975
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00]]
138976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138977
+ Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
138978
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
138979
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138980
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
138981
+  (0.0ms) SELECT COUNT(*) FROM "users"
138982
+  (0.1ms) DELETE FROM "users";
138983
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138984
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
138985
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
138986
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138987
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
138988
+  (0.1ms) DELETE FROM "notifiable_notifications";
138989
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138990
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
138991
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
138992
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
138993
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
138994
+  (0.4ms) rollback transaction
138995
+  (0.0ms) begin transaction
138996
+  (0.0ms) SAVEPOINT active_record_1
138997
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
138998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138999
+  (0.0ms) SAVEPOINT active_record_1
139000
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
139001
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
139002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139003
+ 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
139004
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
139005
+ Parameters: {"token"=>"ABCD8", "user_email"=>"person-14@example.com", "device_token"=>{"token"=>"ABCD8"}}
139006
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
139007
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139008
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
139009
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
139010
+  (0.1ms) SAVEPOINT active_record_1
139011
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
139012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139013
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
139014
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
139015
+  (0.0ms) DELETE FROM "users";
139016
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139017
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139018
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139019
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139020
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139021
+  (0.0ms) DELETE FROM "notifiable_notifications";
139022
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139023
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139024
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139025
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139026
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139027
+  (0.5ms) rollback transaction
139028
+  (0.0ms) begin transaction
139029
+  (0.0ms) SAVEPOINT active_record_1
139030
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
139031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139032
+  (0.0ms) SAVEPOINT active_record_1
139033
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
139034
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD9"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
139035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139036
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139037
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
139038
+  (0.0ms) DELETE FROM "users";
139039
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139040
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139041
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139042
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139043
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139044
+  (0.0ms) DELETE FROM "notifiable_notifications";
139045
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139046
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139047
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139048
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139049
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139050
+  (0.4ms) rollback transaction
139051
+  (0.1ms) begin transaction
139052
+  (0.1ms) SAVEPOINT active_record_1
139053
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
139054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139055
+  (0.0ms) SAVEPOINT active_record_1
139056
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
139057
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD10"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
139058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139059
+ 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
139060
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
139061
+  (0.1ms) DELETE FROM "users";
139062
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139063
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139064
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139065
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139066
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139067
+  (0.1ms) DELETE FROM "notifiable_notifications";
139068
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139069
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139070
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139071
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139072
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139073
+  (0.5ms) rollback transaction
139074
+  (0.0ms) begin transaction
139075
+  (0.0ms) SAVEPOINT active_record_1
139076
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
139077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139078
+  (0.0ms) SAVEPOINT active_record_1
139079
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
139080
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD11"], ["updated_at", Sat, 15 Feb 2014 07:42:25 UTC +00:00], ["user_id", 1]]
139081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139082
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139083
+  (0.0ms) DELETE FROM "users";
139084
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139085
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139086
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139087
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139088
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139089
+  (0.0ms) DELETE FROM "notifiable_notifications";
139090
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139091
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139092
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139093
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139094
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139095
+  (0.4ms) rollback transaction
139096
+  (0.3ms) begin transaction
139097
+  (0.0ms) SAVEPOINT active_record_1
139098
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
139099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139100
+ Processing by Notifiable::DeviceTokensController#create as JSON
139101
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-1@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
139102
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
139103
+ Unpermitted parameters: user_email, device_token
139104
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
139105
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
139106
+  (0.0ms) SAVEPOINT active_record_1
139107
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
139108
+ SQL (3.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:02 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:49:02 UTC +00:00], ["user_id", 1]]
139109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139110
+ Completed 200 OK in 44ms (ActiveRecord: 4.1ms)
139111
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
139112
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139113
+ 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
139114
+  (0.0ms) DELETE FROM "users";
139115
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139116
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139117
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139118
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139119
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139120
+  (0.1ms) DELETE FROM "notifiable_notifications";
139121
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139122
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139123
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139124
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139125
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139126
+  (1.0ms) rollback transaction
139127
+  (0.1ms) begin transaction
139128
+  (0.1ms) SAVEPOINT active_record_1
139129
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
139130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139131
+  (0.1ms) SAVEPOINT active_record_1
139132
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
139133
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:02 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 15 Feb 2014 07:49:02 UTC +00:00], ["user_id", 1]]
139134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139135
+ 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
139136
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
139137
+ Parameters: {"token"=>"ABCD1", "user_email"=>"person-2@example.com", "device_token"=>{"token"=>"ABCD1"}}
139138
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
139139
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139140
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
139141
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
139142
+  (0.0ms) SAVEPOINT active_record_1
139143
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
139144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139145
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
139146
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1'
139147
+  (0.0ms) DELETE FROM "users";
139148
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139149
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139150
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139151
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139152
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139153
+  (0.1ms) DELETE FROM "notifiable_notifications";
139154
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139155
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139156
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139157
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139158
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139159
+  (13.4ms) rollback transaction
139160
+  (0.1ms) begin transaction
139161
+  (0.1ms) SAVEPOINT active_record_1
139162
+ SQL (0.5ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
139163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139164
+ Processing by Notifiable::DeviceTokensController#create as JSON
139165
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-3@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
139166
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
139167
+ Unpermitted parameters: user_email, device_token
139168
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
139169
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
139170
+  (0.0ms) SAVEPOINT active_record_1
139171
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
139172
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:02 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:49:02 UTC +00:00], ["user_id", 1]]
139173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139174
+ Completed 200 OK in 4ms (ActiveRecord: 0.8ms)
139175
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
139176
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139177
+ 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
139178
+ 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
139179
+  (0.1ms) DELETE FROM "users";
139180
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139181
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139182
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139183
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139184
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139185
+  (0.1ms) DELETE FROM "notifiable_notifications";
139186
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139187
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139188
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139189
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139190
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139191
+  (0.5ms) rollback transaction
139192
+  (0.1ms) begin transaction
139193
+  (0.0ms) SAVEPOINT active_record_1
139194
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
139195
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:02 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD2"], ["updated_at", Sat, 15 Feb 2014 07:49:02 UTC +00:00]]
139196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139197
+  (0.0ms) SAVEPOINT active_record_1
139198
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
139199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139200
+ Processing by Notifiable::DeviceTokensController#create as JSON
139201
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-4@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
139202
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
139203
+ Unpermitted parameters: user_email, device_token
139204
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
139205
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
139206
+  (0.0ms) SAVEPOINT active_record_1
139207
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
139208
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Sat, 15 Feb 2014 07:49:02 UTC +00:00]]
139209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139210
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
139211
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
139212
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139213
+ 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
139214
+  (0.1ms) DELETE FROM "users";
139215
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139216
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
139217
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139218
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139219
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139220
+  (0.1ms) DELETE FROM "notifiable_notifications";
139221
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139222
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139223
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139224
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139225
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139226
+  (0.6ms) rollback transaction
139227
+  (0.1ms) begin transaction
139228
+  (0.0ms) SAVEPOINT active_record_1
139229
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
139230
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139231
+  (0.0ms) SAVEPOINT active_record_1
139232
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
139233
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 1]]
139234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139235
+ 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
139236
+  (0.0ms) SAVEPOINT active_record_1
139237
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
139238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139239
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
139240
+ Parameters: {"token"=>"ABCD3", "user_email"=>"person-6@example.com", "device_token"=>{"token"=>"ABCD3"}}
139241
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
139242
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139243
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
139244
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
139245
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
139246
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
139247
+  (0.1ms) DELETE FROM "users";
139248
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139249
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
139250
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139251
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139252
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139253
+  (0.1ms) DELETE FROM "notifiable_notifications";
139254
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139255
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139256
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139257
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139258
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139259
+  (0.6ms) rollback transaction
139260
+  (0.0ms) begin transaction
139261
+  (0.0ms) SAVEPOINT active_record_1
139262
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
139263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139264
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
139265
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-7@example.com", "device_token"=>{"token"=>"ZXY987"}}
139266
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
139267
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139268
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
139269
+  (0.0ms) SAVEPOINT active_record_1
139270
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
139271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139272
+  (0.0ms) SAVEPOINT active_record_1
139273
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
139274
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 2]]
139275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139276
+ 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
139277
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
139278
+  (0.1ms) DELETE FROM "users";
139279
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139280
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139281
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139282
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139283
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139284
+  (0.0ms) DELETE FROM "notifiable_notifications";
139285
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139286
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139287
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139288
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139289
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139290
+  (0.5ms) rollback transaction
139291
+  (0.1ms) begin transaction
139292
+  (0.1ms) SAVEPOINT active_record_1
139293
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
139294
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139295
+  (0.1ms) SAVEPOINT active_record_1
139296
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
139297
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 1]]
139298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139299
+ 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
139300
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
139301
+ Parameters: {"token"=>"ABCD5", "device_token"=>{"token"=>"ABCD5"}}
139302
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
139303
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
139304
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
139305
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
139306
+  (0.1ms) DELETE FROM "users";
139307
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139308
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
139309
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
139310
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139311
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139312
+  (0.1ms) DELETE FROM "notifiable_notifications";
139313
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139314
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139315
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139316
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139317
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139318
+  (0.6ms) rollback transaction
139319
+  (0.1ms) begin transaction
139320
+ Processing by Notifiable::DeviceTokensController#create as JSON
139321
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
139322
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
139323
+ Unpermitted parameters: device_token
139324
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
139325
+  (0.0ms) SAVEPOINT active_record_1
139326
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
139327
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00]]
139328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139329
+ Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
139330
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
139331
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139332
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139333
+  (0.0ms) SELECT COUNT(*) FROM "users"
139334
+  (0.1ms) DELETE FROM "users";
139335
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139336
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139337
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
139338
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139339
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139340
+  (0.0ms) DELETE FROM "notifiable_notifications";
139341
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139342
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139343
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139344
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139345
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139346
+  (0.5ms) rollback transaction
139347
+  (0.0ms) begin transaction
139348
+  (0.2ms) DELETE FROM "users";
139349
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139350
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139351
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
139352
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139353
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139354
+  (0.0ms) DELETE FROM "notifiable_notifications";
139355
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139356
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139357
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139358
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139359
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139360
+  (0.4ms) rollback transaction
139361
+  (0.0ms) begin transaction
139362
+  (0.0ms) SAVEPOINT active_record_1
139363
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
139364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139365
+  (0.0ms) SAVEPOINT active_record_1
139366
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
139367
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 1]]
139368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139369
+  (0.0ms) DELETE FROM "users";
139370
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139371
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139372
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
139373
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139374
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139375
+  (0.0ms) DELETE FROM "notifiable_notifications";
139376
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139377
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139378
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139379
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139380
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139381
+  (0.4ms) rollback transaction
139382
+  (0.0ms) begin transaction
139383
+  (0.0ms) SAVEPOINT active_record_1
139384
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
139385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139386
+  (0.0ms) SAVEPOINT active_record_1
139387
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
139388
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD7"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 1]]
139389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139390
+ 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
139391
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
139392
+  (0.0ms) DELETE FROM "users";
139393
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139394
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139395
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139396
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139397
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139398
+  (0.0ms) DELETE FROM "notifiable_notifications";
139399
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139400
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139401
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139402
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139403
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139404
+  (0.5ms) rollback transaction
139405
+  (0.0ms) begin transaction
139406
+  (0.0ms) SAVEPOINT active_record_1
139407
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
139408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139409
+  (0.0ms) SAVEPOINT active_record_1
139410
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
139411
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD8"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 1]]
139412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139413
+  (0.0ms) DELETE FROM "users";
139414
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139415
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139416
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139417
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139418
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139419
+  (0.0ms) DELETE FROM "notifiable_notifications";
139420
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139421
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139422
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139423
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139424
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139425
+  (0.4ms) rollback transaction
139426
+  (0.0ms) begin transaction
139427
+  (0.0ms) SAVEPOINT active_record_1
139428
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
139429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139430
+  (0.1ms) SAVEPOINT active_record_1
139431
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
139432
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD9"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 1]]
139433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139434
+  (0.0ms) DELETE FROM "users";
139435
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139436
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139437
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139438
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139439
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139440
+  (0.0ms) DELETE FROM "notifiable_notifications";
139441
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139442
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139443
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139444
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139445
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139446
+  (0.4ms) rollback transaction
139447
+  (0.0ms) begin transaction
139448
+  (0.0ms) SAVEPOINT active_record_1
139449
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00]]
139450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139451
+  (0.0ms) SAVEPOINT active_record_1
139452
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
139453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139454
+  (0.1ms) SAVEPOINT active_record_1
139455
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
139456
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 1]]
139457
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139458
+  (0.0ms) DELETE FROM "users";
139459
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139460
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139461
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139462
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139463
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139464
+  (0.0ms) DELETE FROM "notifiable_notifications";
139465
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139466
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139467
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139468
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139469
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139470
+  (0.5ms) rollback transaction
139471
+  (0.1ms) begin transaction
139472
+  (0.0ms) SAVEPOINT active_record_1
139473
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00]]
139474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139475
+  (0.0ms) SAVEPOINT active_record_1
139476
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
139477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139478
+  (0.0ms) SAVEPOINT active_record_1
139479
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
139480
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 1]]
139481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139482
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139483
+  (0.0ms) SAVEPOINT active_record_1
139484
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
139485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139486
+  (0.1ms) SAVEPOINT active_record_1
139487
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
139488
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 2]]
139489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139490
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
139491
+  (0.1ms) SAVEPOINT active_record_1
139492
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
139493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139494
+  (0.0ms) SAVEPOINT active_record_1
139495
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
139496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139497
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
139498
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
139499
+ Notifiable::Notification Load (0.2ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
139500
+ 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]]
139501
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139502
+ 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]]
139503
+ 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]]
139504
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
139505
+  (0.0ms) DELETE FROM "users";
139506
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139507
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139508
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139509
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139510
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139511
+  (0.0ms) DELETE FROM "notifiable_notifications";
139512
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139513
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139514
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139515
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139516
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139517
+  (0.5ms) rollback transaction
139518
+  (0.1ms) begin transaction
139519
+  (0.0ms) SAVEPOINT active_record_1
139520
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
139521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139522
+  (0.0ms) SAVEPOINT active_record_1
139523
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
139524
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["user_id", 1]]
139525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139526
+  (0.0ms) SAVEPOINT active_record_1
139527
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00]]
139528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139529
+  (0.0ms) DELETE FROM "users";
139530
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139531
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139532
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139533
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139534
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139535
+  (0.0ms) DELETE FROM "notifiable_notifications";
139536
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139537
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139538
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139539
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139540
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139541
+  (0.4ms) rollback transaction
139542
+  (0.0ms) begin transaction
139543
+  (0.0ms) SAVEPOINT active_record_1
139544
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00]]
139545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139546
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
139547
+  (0.1ms) DELETE FROM "users";
139548
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139549
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139550
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
139551
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139552
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139553
+  (0.0ms) DELETE FROM "notifiable_notifications";
139554
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139555
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139556
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139557
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139558
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139559
+  (0.4ms) rollback transaction
139560
+  (0.0ms) begin transaction
139561
+  (0.1ms) SAVEPOINT active_record_1
139562
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:03 UTC +00:00]]
139563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139564
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
139565
+  (0.1ms) DELETE FROM "users";
139566
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139567
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139568
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
139569
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139570
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139571
+  (0.0ms) DELETE FROM "notifiable_notifications";
139572
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139573
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139574
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139575
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139576
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139577
+  (0.3ms) rollback transaction
139578
+  (0.3ms) begin transaction
139579
+  (0.0ms) SAVEPOINT active_record_1
139580
+ SQL (2.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00]]
139581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139582
+  (0.0ms) SAVEPOINT active_record_1
139583
+ SQL (1.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
139584
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139585
+  (0.1ms) SAVEPOINT active_record_1
139586
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
139587
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
139588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139589
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139590
+  (0.0ms) SAVEPOINT active_record_1
139591
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
139592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139593
+  (0.0ms) SAVEPOINT active_record_1
139594
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
139595
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 2]]
139596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139597
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
139598
+  (0.0ms) SAVEPOINT active_record_1
139599
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
139600
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139601
+  (0.0ms) SAVEPOINT active_record_1
139602
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
139603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139604
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
139605
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
139606
+ 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]]
139607
+ 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]]
139608
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139609
+ 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]]
139610
+ 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]]
139611
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
139612
+  (0.0ms) DELETE FROM "users";
139613
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139614
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139615
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139616
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139617
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139618
+  (0.0ms) DELETE FROM "notifiable_notifications";
139619
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139620
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139621
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139622
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139623
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139624
+  (6.7ms) rollback transaction
139625
+  (0.1ms) begin transaction
139626
+  (0.1ms) SAVEPOINT active_record_1
139627
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
139628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139629
+  (0.0ms) SAVEPOINT active_record_1
139630
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
139631
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
139632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139633
+  (0.1ms) SAVEPOINT active_record_1
139634
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00]]
139635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139636
+  (0.0ms) DELETE FROM "users";
139637
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139638
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
139639
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139640
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139641
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139642
+  (0.0ms) DELETE FROM "notifiable_notifications";
139643
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139644
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139645
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139646
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139647
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139648
+  (0.6ms) rollback transaction
139649
+  (0.1ms) begin transaction
139650
+  (0.1ms) SAVEPOINT active_record_1
139651
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00]]
139652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139653
+  (0.1ms) SAVEPOINT active_record_1
139654
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
139655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139656
+  (0.1ms) SAVEPOINT active_record_1
139657
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
139658
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
139659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139660
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139661
+  (0.0ms) SAVEPOINT active_record_1
139662
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00]]
139663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139664
+  (0.0ms) SAVEPOINT active_record_1
139665
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
139666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139667
+  (0.0ms) SAVEPOINT active_record_1
139668
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
139669
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 2]]
139670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139671
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
139672
+  (0.0ms) SAVEPOINT active_record_1
139673
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
139674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139675
+  (0.0ms) SAVEPOINT active_record_1
139676
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
139677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139678
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
139679
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
139680
+ 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]]
139681
+ 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]]
139682
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139683
+ 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]]
139684
+ 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]]
139685
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
139686
+  (0.0ms) DELETE FROM "users";
139687
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139688
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139689
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139690
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139691
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139692
+  (0.0ms) DELETE FROM "notifiable_notifications";
139693
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139694
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139695
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139696
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139697
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139698
+  (0.5ms) rollback transaction
139699
+  (0.0ms) begin transaction
139700
+  (0.0ms) SAVEPOINT active_record_1
139701
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
139702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139703
+ Processing by Notifiable::DeviceTokensController#create as JSON
139704
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-6@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
139705
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
139706
+ Unpermitted parameters: user_email, device_token
139707
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
139708
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
139709
+  (0.0ms) SAVEPOINT active_record_1
139710
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
139711
+ SQL (0.9ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
139712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139713
+ Completed 200 OK in 5ms (ActiveRecord: 1.3ms)
139714
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
139715
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139716
+ 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
139717
+  (0.0ms) DELETE FROM "users";
139718
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139719
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139720
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139721
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139722
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139723
+  (0.1ms) DELETE FROM "notifiable_notifications";
139724
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139725
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139726
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139727
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139728
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139729
+  (0.6ms) rollback transaction
139730
+  (0.1ms) begin transaction
139731
+  (0.0ms) SAVEPOINT active_record_1
139732
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
139733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139734
+  (0.0ms) SAVEPOINT active_record_1
139735
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
139736
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
139737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139738
+ 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
139739
+  (0.0ms) SAVEPOINT active_record_1
139740
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
139741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139742
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
139743
+ Parameters: {"token"=>"ABCD5", "user_email"=>"person-8@example.com", "device_token"=>{"token"=>"ABCD5"}}
139744
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
139745
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139746
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
139747
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
139748
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
139749
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
139750
+  (0.1ms) DELETE FROM "users";
139751
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139752
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
139753
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139754
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139755
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139756
+  (0.1ms) DELETE FROM "notifiable_notifications";
139757
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139758
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139759
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139760
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139761
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139762
+  (0.5ms) rollback transaction
139763
+  (0.1ms) begin transaction
139764
+  (0.0ms) SAVEPOINT active_record_1
139765
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
139766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139767
+ Processing by Notifiable::DeviceTokensController#create as JSON
139768
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-9@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
139769
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
139770
+ Unpermitted parameters: user_email, device_token
139771
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
139772
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
139773
+  (0.0ms) SAVEPOINT active_record_1
139774
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
139775
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
139776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139777
+ Completed 200 OK in 3ms (ActiveRecord: 0.8ms)
139778
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
139779
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139780
+ 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
139781
+ 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
139782
+  (0.0ms) DELETE FROM "users";
139783
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139784
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139785
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139786
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139787
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139788
+  (0.0ms) DELETE FROM "notifiable_notifications";
139789
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139790
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139791
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139792
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139793
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139794
+  (0.4ms) rollback transaction
139795
+  (0.1ms) begin transaction
139796
+  (0.1ms) SAVEPOINT active_record_1
139797
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
139798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139799
+  (0.0ms) SAVEPOINT active_record_1
139800
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
139801
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
139802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139803
+ 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
139804
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
139805
+ Parameters: {"token"=>"ABCD6", "user_email"=>"person-10@example.com", "device_token"=>{"token"=>"ABCD6"}}
139806
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
139807
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139808
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
139809
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
139810
+  (0.0ms) SAVEPOINT active_record_1
139811
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
139812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139813
+ Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
139814
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
139815
+  (0.0ms) DELETE FROM "users";
139816
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139817
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
139818
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139819
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139820
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139821
+  (0.0ms) DELETE FROM "notifiable_notifications";
139822
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139823
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139824
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139825
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139826
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139827
+  (0.4ms) rollback transaction
139828
+  (0.1ms) begin transaction
139829
+  (0.0ms) SAVEPOINT active_record_1
139830
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
139831
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD7"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00]]
139832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139833
+  (0.0ms) SAVEPOINT active_record_1
139834
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
139835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139836
+ Processing by Notifiable::DeviceTokensController#create as JSON
139837
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-11@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
139838
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
139839
+ Unpermitted parameters: user_email, device_token
139840
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
139841
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1
139842
+  (0.0ms) SAVEPOINT active_record_1
139843
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
139844
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00]]
139845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139846
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
139847
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
139848
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139849
+ 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
139850
+  (0.0ms) DELETE FROM "users";
139851
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139852
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
139853
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
139854
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139855
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139856
+  (0.1ms) DELETE FROM "notifiable_notifications";
139857
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139858
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139859
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139860
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139861
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139862
+  (0.5ms) rollback transaction
139863
+  (0.1ms) begin transaction
139864
+ Processing by Notifiable::DeviceTokensController#create as JSON
139865
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
139866
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
139867
+ Unpermitted parameters: device_token
139868
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
139869
+  (0.1ms) SAVEPOINT active_record_1
139870
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
139871
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00]]
139872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139873
+ Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
139874
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
139875
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139876
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139877
+  (0.1ms) SELECT COUNT(*) FROM "users"
139878
+  (0.1ms) DELETE FROM "users";
139879
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139880
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
139881
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139882
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139883
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139884
+  (0.1ms) DELETE FROM "notifiable_notifications";
139885
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139886
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139887
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139888
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139889
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139890
+  (0.4ms) rollback transaction
139891
+  (0.0ms) begin transaction
139892
+  (0.1ms) SAVEPOINT active_record_1
139893
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
139894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139895
+  (0.0ms) SAVEPOINT active_record_1
139896
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
139897
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
139898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139899
+ 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
139900
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
139901
+ Parameters: {"token"=>"ABCD8", "device_token"=>{"token"=>"ABCD8"}}
139902
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
139903
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
139904
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
139905
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
139906
+  (0.0ms) DELETE FROM "users";
139907
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139908
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139909
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139910
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139911
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139912
+  (0.0ms) DELETE FROM "notifiable_notifications";
139913
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139914
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139915
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139916
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139917
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139918
+  (0.5ms) rollback transaction
139919
+  (0.1ms) begin transaction
139920
+  (0.0ms) SAVEPOINT active_record_1
139921
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
139922
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139923
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
139924
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-13@example.com", "device_token"=>{"token"=>"ZXY987"}}
139925
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
139926
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
139927
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
139928
+  (0.0ms) SAVEPOINT active_record_1
139929
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
139930
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139931
+  (0.0ms) SAVEPOINT active_record_1
139932
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
139933
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 2]]
139934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139935
+ 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
139936
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
139937
+  (0.1ms) DELETE FROM "users";
139938
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139939
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139940
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139941
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139942
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139943
+  (0.0ms) DELETE FROM "notifiable_notifications";
139944
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139945
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139946
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
139947
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139948
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139949
+  (0.5ms) rollback transaction
139950
+  (0.1ms) begin transaction
139951
+  (0.0ms) SAVEPOINT active_record_1
139952
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
139953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139954
+  (0.0ms) SAVEPOINT active_record_1
139955
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
139956
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD10"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
139957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139958
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139959
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
139960
+  (0.0ms) DELETE FROM "users";
139961
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139962
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
139963
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139964
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139965
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139966
+  (0.0ms) DELETE FROM "notifiable_notifications";
139967
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139968
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139969
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139970
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139971
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139972
+  (0.4ms) rollback transaction
139973
+  (0.1ms) begin transaction
139974
+  (0.0ms) SAVEPOINT active_record_1
139975
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
139976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139977
+  (0.0ms) SAVEPOINT active_record_1
139978
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
139979
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD11"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
139980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139981
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
139982
+  (0.0ms) DELETE FROM "users";
139983
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139984
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
139985
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
139986
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139987
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
139988
+  (0.0ms) DELETE FROM "notifiable_notifications";
139989
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139990
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
139991
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
139992
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
139993
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
139994
+  (0.5ms) rollback transaction
139995
+  (0.1ms) begin transaction
139996
+  (0.0ms) SAVEPOINT active_record_1
139997
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
139998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139999
+  (0.0ms) SAVEPOINT active_record_1
140000
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
140001
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD12"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
140002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140003
+ 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
140004
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
140005
+  (0.0ms) DELETE FROM "users";
140006
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140007
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140008
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140009
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140010
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140011
+  (0.0ms) DELETE FROM "notifiable_notifications";
140012
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140013
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140014
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140015
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140016
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140017
+  (0.5ms) rollback transaction
140018
+  (0.1ms) begin transaction
140019
+  (0.1ms) SAVEPOINT active_record_1
140020
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
140021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140022
+  (0.1ms) SAVEPOINT active_record_1
140023
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
140024
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["user_id", 1]]
140025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140026
+  (0.1ms) DELETE FROM "users";
140027
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140028
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
140029
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140030
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140031
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140032
+  (0.1ms) DELETE FROM "notifiable_notifications";
140033
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140034
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140035
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
140036
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140037
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140038
+  (0.5ms) rollback transaction
140039
+  (0.0ms) begin transaction
140040
+  (0.2ms) DELETE FROM "users";
140041
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140042
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140043
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
140044
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140045
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140046
+  (0.0ms) DELETE FROM "notifiable_notifications";
140047
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140048
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140049
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140050
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140051
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140052
+  (0.3ms) rollback transaction
140053
+  (0.1ms) begin transaction
140054
+  (0.0ms) SAVEPOINT active_record_1
140055
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00]]
140056
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140057
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
140058
+  (0.1ms) DELETE FROM "users";
140059
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140060
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
140061
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
140062
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140063
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140064
+  (0.0ms) DELETE FROM "notifiable_notifications";
140065
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140066
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140067
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
140068
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140069
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140070
+  (0.4ms) rollback transaction
140071
+  (0.1ms) begin transaction
140072
+  (0.0ms) SAVEPOINT active_record_1
140073
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 07:49:46 UTC +00:00]]
140074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140075
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
140076
+  (0.1ms) DELETE FROM "users";
140077
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140078
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140079
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
140080
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140081
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140082
+  (0.0ms) DELETE FROM "notifiable_notifications";
140083
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140084
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140085
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140086
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140087
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140088
+  (0.4ms) rollback transaction
140089
+  (0.3ms) begin transaction
140090
+  (0.1ms) SAVEPOINT active_record_1
140091
+ SQL (2.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00]]
140092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140093
+  (0.0ms) SAVEPOINT active_record_1
140094
+ SQL (0.9ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
140095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140096
+  (0.1ms) SAVEPOINT active_record_1
140097
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
140098
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["user_id", 1]]
140099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140100
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140101
+  (0.1ms) SAVEPOINT active_record_1
140102
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
140103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140104
+  (0.0ms) SAVEPOINT active_record_1
140105
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
140106
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["user_id", 2]]
140107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140108
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
140109
+  (0.1ms) SAVEPOINT active_record_1
140110
+ SQL (0.2ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
140111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140112
+  (0.0ms) SAVEPOINT active_record_1
140113
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
140114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140115
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
140116
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
140117
+ 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]]
140118
+ 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]]
140119
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140120
+ 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]]
140121
+ 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]]
140122
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
140123
+  (0.0ms) DELETE FROM "users";
140124
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140125
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140126
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140127
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140128
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140129
+  (0.0ms) DELETE FROM "notifiable_notifications";
140130
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140131
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140132
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140133
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140134
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140135
+  (6.5ms) rollback transaction
140136
+  (0.1ms) begin transaction
140137
+  (0.0ms) SAVEPOINT active_record_1
140138
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00]]
140139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140140
+  (0.0ms) SAVEPOINT active_record_1
140141
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
140142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140143
+  (0.0ms) SAVEPOINT active_record_1
140144
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
140145
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["user_id", 1]]
140146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140147
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140148
+  (0.0ms) SAVEPOINT active_record_1
140149
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00]]
140150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140151
+  (0.0ms) SAVEPOINT active_record_1
140152
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
140153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140154
+  (0.0ms) SAVEPOINT active_record_1
140155
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
140156
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["user_id", 2]]
140157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140158
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
140159
+  (0.0ms) SAVEPOINT active_record_1
140160
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
140161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140162
+  (0.0ms) SAVEPOINT active_record_1
140163
+ SQL (0.0ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
140164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140165
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
140166
+ Notifiable::NotificationStatus Load (0.0ms) SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"
140167
+ 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]]
140168
+ 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]]
140169
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140170
+ 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]]
140171
+ 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]]
140172
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
140173
+  (0.0ms) DELETE FROM "users";
140174
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140175
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140176
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140177
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140178
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140179
+  (0.0ms) DELETE FROM "notifiable_notifications";
140180
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140181
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140182
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140183
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140184
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140185
+  (0.6ms) rollback transaction
140186
+  (0.1ms) begin transaction
140187
+  (0.1ms) SAVEPOINT active_record_1
140188
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
140189
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140190
+  (0.1ms) SAVEPOINT active_record_1
140191
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'DEF567' LIMIT 1
140192
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["provider", :gcm], ["token", "DEF567"], ["updated_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["user_id", 1]]
140193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140194
+  (0.1ms) SAVEPOINT active_record_1
140195
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:54 UTC +00:00]]
140196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140197
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140198
+  (0.0ms) DELETE FROM "users";
140199
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140200
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
140201
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140202
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140203
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140204
+  (0.0ms) DELETE FROM "notifiable_notifications";
140205
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140206
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140207
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
140208
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140209
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140210
+  (0.5ms) rollback transaction
140211
+  (0.1ms) begin transaction
140212
+  (0.1ms) SAVEPOINT active_record_1
140213
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
140214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140215
+ Processing by Notifiable::DeviceTokensController#create as JSON
140216
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-6@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
140217
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
140218
+ Unpermitted parameters: user_email, device_token
140219
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
140220
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
140221
+  (0.0ms) SAVEPOINT active_record_1
140222
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
140223
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["user_id", 1]]
140224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140225
+ Completed 200 OK in 4ms (ActiveRecord: 0.8ms)
140226
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
140227
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140228
+ 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
140229
+  (0.0ms) DELETE FROM "users";
140230
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140231
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140232
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140233
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140234
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140235
+  (0.1ms) DELETE FROM "notifiable_notifications";
140236
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140237
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140238
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
140239
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140240
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140241
+  (0.5ms) rollback transaction
140242
+  (0.1ms) begin transaction
140243
+  (0.0ms) SAVEPOINT active_record_1
140244
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
140245
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD5"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00]]
140246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140247
+  (0.0ms) SAVEPOINT active_record_1
140248
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
140249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140250
+ Processing by Notifiable::DeviceTokensController#create as JSON
140251
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-7@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
140252
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
140253
+ Unpermitted parameters: user_email, device_token
140254
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
140255
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
140256
+  (0.0ms) SAVEPOINT active_record_1
140257
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
140258
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00]]
140259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140260
+ Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
140261
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
140262
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140263
+ 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
140264
+  (0.0ms) DELETE FROM "users";
140265
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140266
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140267
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140268
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140269
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140270
+  (0.0ms) DELETE FROM "notifiable_notifications";
140271
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140272
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140273
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140274
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140275
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140276
+  (0.5ms) rollback transaction
140277
+  (0.1ms) begin transaction
140278
+  (0.0ms) SAVEPOINT active_record_1
140279
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
140280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140281
+  (0.0ms) SAVEPOINT active_record_1
140282
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
140283
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["user_id", 1]]
140284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140285
+ 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
140286
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
140287
+ Parameters: {"token"=>"ABCD6", "user_email"=>"person-8@example.com", "device_token"=>{"token"=>"ABCD6"}}
140288
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
140289
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
140290
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
140291
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
140292
+  (0.0ms) SAVEPOINT active_record_1
140293
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
140294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140295
+ Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
140296
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6'
140297
+  (0.1ms) DELETE FROM "users";
140298
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140299
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140300
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140301
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140302
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140303
+  (0.1ms) DELETE FROM "notifiable_notifications";
140304
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140305
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140306
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
140307
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140308
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140309
+  (0.6ms) rollback transaction
140310
+  (0.1ms) begin transaction
140311
+  (0.0ms) SAVEPOINT active_record_1
140312
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
140313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140314
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
140315
+ Parameters: {"token"=>"ZXY987", "user_email"=>"person-9@example.com", "device_token"=>{"token"=>"ZXY987"}}
140316
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
140317
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
140318
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
140319
+  (0.0ms) SAVEPOINT active_record_1
140320
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
140321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140322
+  (0.0ms) SAVEPOINT active_record_1
140323
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
140324
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["user_id", 2]]
140325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140326
+ 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
140327
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
140328
+  (0.0ms) DELETE FROM "users";
140329
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140330
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
140331
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140332
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140333
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140334
+  (0.0ms) DELETE FROM "notifiable_notifications";
140335
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140336
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140337
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140338
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140339
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140340
+  (0.4ms) rollback transaction
140341
+  (0.1ms) begin transaction
140342
+ Processing by Notifiable::DeviceTokensController#create as JSON
140343
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
140344
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
140345
+ Unpermitted parameters: device_token
140346
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
140347
+  (0.0ms) SAVEPOINT active_record_1
140348
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
140349
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00]]
140350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140351
+ Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
140352
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
140353
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
140354
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
140355
+  (0.1ms) SELECT COUNT(*) FROM "users"
140356
+  (0.1ms) DELETE FROM "users";
140357
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140358
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140359
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140360
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140361
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140362
+  (0.0ms) DELETE FROM "notifiable_notifications";
140363
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140364
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140365
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140366
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140367
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140368
+  (0.5ms) rollback transaction
140369
+  (0.1ms) begin transaction
140370
+  (0.0ms) SAVEPOINT active_record_1
140371
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
140372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140373
+  (0.0ms) SAVEPOINT active_record_1
140374
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
140375
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["user_id", 1]]
140376
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140377
+ 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
140378
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
140379
+ Parameters: {"token"=>"ABCD8", "device_token"=>{"token"=>"ABCD8"}}
140380
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
140381
+ Filter chain halted as :ensure_current_notifiable_user rendered or redirected
140382
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
140383
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8'
140384
+  (0.0ms) DELETE FROM "users";
140385
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140386
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
140387
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140388
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140389
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140390
+  (0.0ms) DELETE FROM "notifiable_notifications";
140391
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140392
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140393
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140394
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140395
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140396
+  (0.4ms) rollback transaction
140397
+  (0.0ms) begin transaction
140398
+  (0.0ms) SAVEPOINT active_record_1
140399
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
140400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140401
+  (0.0ms) SAVEPOINT active_record_1
140402
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
140403
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["user_id", 1]]
140404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140405
+ 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
140406
+  (0.0ms) SAVEPOINT active_record_1
140407
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
140408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140409
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
140410
+ Parameters: {"token"=>"ABCD9", "user_email"=>"person-13@example.com", "device_token"=>{"token"=>"ABCD9"}}
140411
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
140412
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
140413
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
140414
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
140415
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
140416
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
140417
+  (0.1ms) DELETE FROM "users";
140418
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140419
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140420
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140421
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140422
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140423
+  (0.0ms) DELETE FROM "notifiable_notifications";
140424
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140425
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140426
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140427
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140428
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140429
+  (0.4ms) rollback transaction
140430
+  (0.0ms) begin transaction
140431
+  (0.0ms) SAVEPOINT active_record_1
140432
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
140433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140434
+ Processing by Notifiable::DeviceTokensController#create as JSON
140435
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-14@example.com", "provider"=>"apns", "device_token"=>{"token"=>"ABC123", "provider"=>"apns"}}
140436
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
140437
+ Unpermitted parameters: user_email, device_token
140438
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
140439
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
140440
+  (0.0ms) SAVEPOINT active_record_1
140441
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
140442
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["user_id", 1]]
140443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140444
+ Completed 200 OK in 3ms (ActiveRecord: 0.7ms)
140445
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
140446
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140447
+ 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
140448
+ 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
140449
+  (0.0ms) DELETE FROM "users";
140450
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140451
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140452
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140453
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140454
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140455
+  (0.1ms) DELETE FROM "notifiable_notifications";
140456
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140457
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140458
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140459
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140460
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140461
+  (0.5ms) rollback transaction
140462
+  (0.1ms) begin transaction
140463
+  (0.0ms) SAVEPOINT active_record_1
140464
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
140465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140466
+  (0.0ms) SAVEPOINT active_record_1
140467
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
140468
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["user_id", 1]]
140469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140470
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140471
+  (0.0ms) SAVEPOINT active_record_1
140472
+ SQL (0.1ms) INSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?) [["device_token_id", 1], ["status", 200]]
140473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140474
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
140475
+  (0.0ms) DELETE FROM "users";
140476
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140477
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140478
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140479
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140480
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140481
+  (0.0ms) DELETE FROM "notifiable_notifications";
140482
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140483
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140484
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140485
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140486
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140487
+  (0.5ms) rollback transaction
140488
+  (0.1ms) begin transaction
140489
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
140490
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
140491
+  (0.2ms) DELETE FROM "users";
140492
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140493
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140494
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
140495
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140496
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140497
+  (0.0ms) DELETE FROM "notifiable_notifications";
140498
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140499
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140500
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140501
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140502
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140503
+  (0.4ms) rollback transaction
140504
+  (0.0ms) begin transaction
140505
+  (0.0ms) SAVEPOINT active_record_1
140506
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
140507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140508
+  (0.0ms) SAVEPOINT active_record_1
140509
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
140510
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD11"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["user_id", 1]]
140511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140512
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140513
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
140514
+  (0.0ms) DELETE FROM "users";
140515
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140516
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
140517
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140518
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140519
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140520
+  (0.0ms) DELETE FROM "notifiable_notifications";
140521
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140522
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140523
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
140524
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140525
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140526
+  (0.5ms) rollback transaction
140527
+  (0.1ms) begin transaction
140528
+  (0.1ms) SAVEPOINT active_record_1
140529
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
140530
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140531
+  (0.1ms) SAVEPOINT active_record_1
140532
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
140533
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD12"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["user_id", 1]]
140534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
140535
+ 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
140536
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notification_statuses"
140537
+  (0.1ms) DELETE FROM "users";
140538
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140539
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
140540
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140541
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140542
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140543
+  (0.1ms) DELETE FROM "notifiable_notifications";
140544
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140545
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140546
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
140547
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140548
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140549
+  (0.5ms) rollback transaction
140550
+  (0.1ms) begin transaction
140551
+  (0.1ms) SAVEPOINT active_record_1
140552
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
140553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140554
+  (0.0ms) SAVEPOINT active_record_1
140555
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
140556
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD13"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["user_id", 1]]
140557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140558
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
140559
+  (0.0ms) DELETE FROM "users";
140560
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140561
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
140562
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
140563
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140564
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140565
+  (0.1ms) DELETE FROM "notifiable_notifications";
140566
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140567
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140568
+  (0.0ms) DELETE FROM "notifiable_notification_statuses";
140569
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140570
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140571
+  (0.5ms) rollback transaction
140572
+  (0.1ms) begin transaction
140573
+  (0.0ms) SAVEPOINT active_record_1
140574
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00]]
140575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140576
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
140577
+  (0.1ms) DELETE FROM "users";
140578
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140579
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
140580
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
140581
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140582
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140583
+  (0.0ms) DELETE FROM "notifiable_notifications";
140584
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140585
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140586
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
140587
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140588
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140589
+  (0.4ms) rollback transaction
140590
+  (0.1ms) begin transaction
140591
+  (0.0ms) SAVEPOINT active_record_1
140592
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("created_at", "params", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sat, 15 Feb 2014 07:49:55 UTC +00:00]]
140593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
140594
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
140595
+  (0.1ms) DELETE FROM "users";
140596
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140597
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
140598
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
140599
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140600
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
140601
+  (0.0ms) DELETE FROM "notifiable_notifications";
140602
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140603
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
140604
+  (0.1ms) DELETE FROM "notifiable_notification_statuses";
140605
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
140606
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
140607
+  (0.4ms) rollback transaction