notifiable-rails 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 758b7537b637b6a1c545ed19d85c746ea96e3593
4
- data.tar.gz: 7312412478f6aa6a13a76a178b8484dd71960c9d
3
+ metadata.gz: ac1955221077e2eb721c85070c474b59d7952fed
4
+ data.tar.gz: 8e44901e4d2f65d951b2e22e5e0bedea3ed66a97
5
5
  SHA512:
6
- metadata.gz: dd850de3a342893563fb387c6f6fc76ec8d57c3c2613f8962f061279a59cb8e5faf2bc3bc46ba75dfd66a8a71221c28ee91760d1f3e86584a50502c9ececb20a
7
- data.tar.gz: 698e0995cf6bfd5b8404f37b029b0fe9159771214feee2e239eb32435c86c0b311b479f050f95053289480fe48800fd67a594a15a893e52d2f7e96acbfd66f96
6
+ metadata.gz: 33fe7d0abb351f211c697f5a060265755dee45b029d987b0d7621c2a39c7d8471946099e6f4760715b4bcd861fdc020f077c8f1c2087b72243630e0c5d38272f
7
+ data.tar.gz: f290d6d0a398447e5d348ac36ab74c1ee2ee0fe073edeb45ba7703ad59e379009f6df2e789a77003c81d4b877f7c14c3cbf7078934053ba35676521c247c7148
@@ -5,6 +5,7 @@ class CreateNotifiableStatuses < ActiveRecord::Migration
5
5
  t.references :notification
6
6
  t.references :device_token
7
7
  t.integer :status
8
+ t.datetime :created_at
8
9
  end
9
10
  end
10
11
 
@@ -21,7 +21,7 @@ module Notifiable
21
21
  end
22
22
 
23
23
  def processed(notification, device_token, status)
24
- receipts << {notification_id: notification.id, device_token_id: device_token.id, status: status}
24
+ receipts << {notification_id: notification.id, device_token_id: device_token.id, status: status, created_at: DateTime.now}
25
25
 
26
26
  if receipts.count > 10000
27
27
  save_receipts
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.13.0"
2
+ VERSION = "0.14.0"
3
3
  end
data/spec/batch_spec.rb CHANGED
@@ -20,6 +20,7 @@ describe Notifiable::Batch do
20
20
 
21
21
  saved_status = Notifiable::NotificationStatus.first
22
22
  saved_status.status.should == 0
23
+ saved_status.created_at.should_not be_nil
23
24
  end
24
25
 
25
26
  it "adds a device token" do
@@ -5,6 +5,7 @@ class CreateNotifiableStatuses < ActiveRecord::Migration
5
5
  t.references :notification
6
6
  t.references :device_token
7
7
  t.integer :status
8
+ t.datetime :created_at
8
9
  end
9
10
  end
10
11
 
@@ -47,9 +47,10 @@ ActiveRecord::Schema.define(version: 20131229104039) do
47
47
  end
48
48
 
49
49
  create_table "notifiable_statuses", force: true do |t|
50
- t.integer "notification_id"
51
- t.integer "device_token_id"
52
- t.integer "status"
50
+ t.integer "notification_id"
51
+ t.integer "device_token_id"
52
+ t.integer "status"
53
+ t.datetime "created_at"
53
54
  end
54
55
 
55
56
  create_table "users", force: true do |t|
Binary file
@@ -228964,3 +228964,2736 @@ Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
228964
228964
   (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
228965
228965
   (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
228966
228966
   (0.4ms) rollback transaction
228967
+  (0.3ms) begin transaction
228968
+  (0.0ms) SAVEPOINT active_record_1
228969
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
228970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
228971
+  (0.1ms) SAVEPOINT active_record_1
228972
+ SQL (3.0ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00]]
228973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
228974
+  (0.1ms) SAVEPOINT active_record_1
228975
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
228976
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["user_id", 1]]
228977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
228978
+  (0.0ms) SAVEPOINT active_record_1
228979
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00]]
228980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
228981
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
228982
+  (0.0ms) DELETE FROM "users";
228983
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
228984
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
228985
+  (0.0ms) DELETE FROM "notifiable_apps";
228986
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
228987
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
228988
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
228989
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
228990
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
228991
+  (0.0ms) DELETE FROM "notifiable_notifications";
228992
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
228993
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
228994
+  (0.1ms) DELETE FROM "notifiable_statuses";
228995
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
228996
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
228997
+  (0.5ms) rollback transaction
228998
+  (0.0ms) begin transaction
228999
+  (0.0ms) SAVEPOINT active_record_1
229000
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
229001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229002
+  (0.0ms) SAVEPOINT active_record_1
229003
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00]]
229004
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229005
+  (0.0ms) SAVEPOINT active_record_1
229006
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
229007
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["user_id", 1]]
229008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229009
+  (0.0ms) SAVEPOINT active_record_1
229010
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229011
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229012
+  (0.0ms) DELETE FROM "users";
229013
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229014
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229015
+  (0.0ms) DELETE FROM "notifiable_apps";
229016
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229017
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229018
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229019
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229020
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229021
+  (0.0ms) DELETE FROM "notifiable_notifications";
229022
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229023
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229024
+  (0.0ms) DELETE FROM "notifiable_statuses";
229025
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229026
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229027
+  (0.3ms) rollback transaction
229028
+  (0.0ms) begin transaction
229029
+  (0.0ms) SAVEPOINT active_record_1
229030
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
229031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229032
+  (0.0ms) SAVEPOINT active_record_1
229033
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229035
+  (0.0ms) SAVEPOINT active_record_1
229036
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
229037
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229039
+  (0.1ms) SAVEPOINT active_record_1
229040
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229042
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
229043
+  (0.1ms) DELETE FROM "users";
229044
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229045
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
229046
+  (0.0ms) DELETE FROM "notifiable_apps";
229047
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229048
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229049
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229050
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229051
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229052
+  (0.0ms) DELETE FROM "notifiable_notifications";
229053
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229054
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229055
+  (0.1ms) DELETE FROM "notifiable_statuses";
229056
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229057
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229058
+  (0.4ms) rollback transaction
229059
+  (0.1ms) begin transaction
229060
+  (0.0ms) SAVEPOINT active_record_1
229061
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
229062
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229063
+  (0.0ms) SAVEPOINT active_record_1
229064
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229065
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229066
+  (0.0ms) SAVEPOINT active_record_1
229067
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
229068
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
229070
+ 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
229071
+  (0.0ms) SAVEPOINT active_record_1
229072
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229074
+ Processing by Notifiable::DeviceTokensController#create as JSON
229075
+ Parameters: {"token"=>"ABCD4", "provider"=>"mock", "app_id"=>"2", "device_token"=>{"token"=>"ABCD4", "provider"=>"mock", "app_id"=>"2"}}
229076
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
229077
+ Unpermitted parameters: device_token
229078
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
229079
+  (0.0ms) SAVEPOINT active_record_1
229080
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
229081
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
229082
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229083
+  (0.1ms) RELEASE SAVEPOINT active_record_1
229084
+ Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.6ms)
229085
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
229086
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
229087
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
229088
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
229089
+  (0.1ms) DELETE FROM "users";
229090
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229091
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
229092
+  (0.0ms) DELETE FROM "notifiable_apps";
229093
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229094
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229095
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229096
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229097
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229098
+  (0.1ms) DELETE FROM "notifiable_notifications";
229099
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229100
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229101
+  (0.0ms) DELETE FROM "notifiable_statuses";
229102
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229103
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229104
+  (0.5ms) rollback transaction
229105
+  (0.1ms) begin transaction
229106
+  (0.1ms) SAVEPOINT active_record_1
229107
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
229108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229109
+  (0.0ms) SAVEPOINT active_record_1
229110
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229112
+  (0.0ms) SAVEPOINT active_record_1
229113
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
229114
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229116
+ 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
229117
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
229118
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
229119
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
229120
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
229121
+ Filter chain halted as :ensure_current_notifiable_user! rendered or redirected
229122
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.2ms)
229123
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
229124
+  (0.1ms) DELETE FROM "users";
229125
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229126
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229127
+  (0.1ms) DELETE FROM "notifiable_apps";
229128
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229129
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229130
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229131
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229132
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229133
+  (0.1ms) DELETE FROM "notifiable_notifications";
229134
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229135
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229136
+  (0.1ms) DELETE FROM "notifiable_statuses";
229137
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229138
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229139
+  (0.4ms) rollback transaction
229140
+  (0.0ms) begin transaction
229141
+  (0.0ms) SAVEPOINT active_record_1
229142
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
229143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229144
+ Processing by Notifiable::DeviceTokensController#create as JSON
229145
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-6@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
229146
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
229147
+ Unpermitted parameters: device_id, user_email, device_token
229148
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
229149
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
229150
+  (0.0ms) SAVEPOINT active_record_1
229151
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
229152
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
229153
+ Completed 422 Unprocessable Entity in 32ms (Views: 0.2ms | ActiveRecord: 0.4ms)
229154
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
229155
+  (0.3ms) DELETE FROM "users";
229156
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229157
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
229158
+  (0.1ms) DELETE FROM "notifiable_apps";
229159
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229160
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229161
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
229162
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229163
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229164
+  (0.0ms) DELETE FROM "notifiable_notifications";
229165
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229166
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229167
+  (0.0ms) DELETE FROM "notifiable_statuses";
229168
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229169
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229170
+  (0.4ms) rollback transaction
229171
+  (0.0ms) begin transaction
229172
+  (0.0ms) SAVEPOINT active_record_1
229173
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
229174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229175
+  (0.0ms) SAVEPOINT active_record_1
229176
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229178
+  (0.0ms) SAVEPOINT active_record_1
229179
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
229180
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229182
+ 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
229183
+ Processing by Notifiable::DeviceTokensController#update as JSON
229184
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-7@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
229185
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
229186
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
229187
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
229188
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
229189
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
229190
+ Unpermitted parameters: id, user_email, device_token
229191
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
229192
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
229193
+  (0.0ms) SAVEPOINT active_record_1
229194
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
229195
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
229196
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229198
+ Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.7ms)
229199
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
229200
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
229201
+  (0.0ms) DELETE FROM "users";
229202
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229203
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
229204
+  (0.0ms) DELETE FROM "notifiable_apps";
229205
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229206
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229207
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229208
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229209
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229210
+  (0.1ms) DELETE FROM "notifiable_notifications";
229211
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229212
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229213
+  (0.0ms) DELETE FROM "notifiable_statuses";
229214
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229215
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229216
+  (0.5ms) rollback transaction
229217
+  (0.0ms) begin transaction
229218
+  (0.0ms) SAVEPOINT active_record_1
229219
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
229220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229221
+  (0.0ms) SAVEPOINT active_record_1
229222
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229224
+  (0.0ms) SAVEPOINT active_record_1
229225
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
229226
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229228
+ 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
229229
+  (0.0ms) SAVEPOINT active_record_1
229230
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
229231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229232
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
229233
+ Parameters: {"id"=>"1", "user_email"=>"person-9@example.com", "device_token"=>{"id"=>"1"}}
229234
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
229235
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
229236
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
229237
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
229238
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
229239
+ Filter chain halted as :ensure_authorized! rendered or redirected
229240
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
229241
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
229242
+  (0.1ms) DELETE FROM "users";
229243
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229244
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229245
+  (0.0ms) DELETE FROM "notifiable_apps";
229246
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229247
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229248
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229249
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229250
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229251
+  (0.1ms) DELETE FROM "notifiable_notifications";
229252
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229253
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229254
+  (0.0ms) DELETE FROM "notifiable_statuses";
229255
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229256
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229257
+  (0.5ms) rollback transaction
229258
+  (0.0ms) begin transaction
229259
+  (0.0ms) SAVEPOINT active_record_1
229260
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
229261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229262
+  (0.0ms) SAVEPOINT active_record_1
229263
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229265
+  (0.0ms) SAVEPOINT active_record_1
229266
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
229267
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229269
+ 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
229270
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
229271
+ Parameters: {"id"=>"1", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"1"}}
229272
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
229273
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
229274
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
229275
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
229276
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
229277
+  (0.0ms) SAVEPOINT active_record_1
229278
+ SQL (0.2ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
229279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229280
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
229281
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
229282
+  (0.1ms) DELETE FROM "users";
229283
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229284
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229285
+  (0.0ms) DELETE FROM "notifiable_apps";
229286
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229287
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229288
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229289
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229290
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229291
+  (0.1ms) DELETE FROM "notifiable_notifications";
229292
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229293
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229294
+  (0.0ms) DELETE FROM "notifiable_statuses";
229295
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229296
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229297
+  (0.5ms) rollback transaction
229298
+  (0.0ms) begin transaction
229299
+  (0.0ms) SAVEPOINT active_record_1
229300
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
229301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229302
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
229303
+ Parameters: {"id"=>"59", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"59"}}
229304
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
229305
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
229306
+  (0.0ms) SAVEPOINT active_record_1
229307
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
229308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229309
+  (0.0ms) SAVEPOINT active_record_1
229310
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229312
+  (0.0ms) SAVEPOINT active_record_1
229313
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
229314
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 2]]
229315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229316
+ 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
229317
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'
229318
+  (0.0ms) DELETE FROM "users";
229319
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229320
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229321
+  (0.0ms) DELETE FROM "notifiable_apps";
229322
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229323
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229324
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229325
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229326
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229327
+  (0.1ms) DELETE FROM "notifiable_notifications";
229328
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229329
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229330
+  (0.0ms) DELETE FROM "notifiable_statuses";
229331
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229332
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229333
+  (0.5ms) rollback transaction
229334
+  (0.0ms) begin transaction
229335
+  (0.0ms) SAVEPOINT active_record_1
229336
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229338
+ Processing by Notifiable::DeviceTokensController#create as JSON
229339
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
229340
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
229341
+ Unpermitted parameters: device_token
229342
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
229343
+  (0.0ms) SAVEPOINT active_record_1
229344
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
229345
+ Notifiable::DeviceToken Exists (0.0ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
229346
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229348
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)
229349
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
229350
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
229351
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
229352
+  (0.0ms) SELECT COUNT(*) FROM "users"
229353
+  (0.1ms) DELETE FROM "users";
229354
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229355
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229356
+  (0.0ms) DELETE FROM "notifiable_apps";
229357
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229358
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229359
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229360
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229361
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229362
+  (0.0ms) DELETE FROM "notifiable_notifications";
229363
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229364
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229365
+  (0.0ms) DELETE FROM "notifiable_statuses";
229366
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229367
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229368
+  (0.4ms) rollback transaction
229369
+  (0.1ms) begin transaction
229370
+  (0.0ms) SAVEPOINT active_record_1
229371
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
229372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229373
+  (0.0ms) SAVEPOINT active_record_1
229374
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229376
+ Processing by Notifiable::DeviceTokensController#create as JSON
229377
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-13@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
229378
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
229379
+ Unpermitted parameters: user_email, device_token
229380
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
229381
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
229382
+  (0.0ms) SAVEPOINT active_record_1
229383
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
229384
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
229385
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229386
+  (0.1ms) RELEASE SAVEPOINT active_record_1
229387
+ Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.8ms)
229388
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
229389
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
229390
+ 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
229391
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
229392
+  (0.1ms) DELETE FROM "users";
229393
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229394
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229395
+  (0.0ms) DELETE FROM "notifiable_apps";
229396
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229397
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229398
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229399
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229400
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229401
+  (0.1ms) DELETE FROM "notifiable_notifications";
229402
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229403
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229404
+  (0.0ms) DELETE FROM "notifiable_statuses";
229405
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229406
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229407
+  (0.5ms) rollback transaction
229408
+  (0.0ms) begin transaction
229409
+  (0.0ms) SAVEPOINT active_record_1
229410
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229412
+  (0.0ms) SAVEPOINT active_record_1
229413
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229415
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
229416
+  (0.1ms) DELETE FROM "users";
229417
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229418
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229419
+  (0.0ms) DELETE FROM "notifiable_apps";
229420
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229421
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229422
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
229423
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229424
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229425
+  (0.1ms) DELETE FROM "notifiable_notifications";
229426
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229427
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229428
+  (0.1ms) DELETE FROM "notifiable_statuses";
229429
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229430
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229431
+  (0.5ms) rollback transaction
229432
+  (0.1ms) begin transaction
229433
+  (0.0ms) SAVEPOINT active_record_1
229434
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229436
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
229437
+  (0.0ms) SAVEPOINT active_record_1
229438
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229440
+  (0.0ms) SAVEPOINT active_record_1
229441
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229443
+  (0.0ms) SAVEPOINT active_record_1
229444
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
229445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229446
+  (0.0ms) SAVEPOINT active_record_1
229447
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229449
+  (0.0ms) SAVEPOINT active_record_1
229450
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
229451
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229453
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
229454
+  (0.0ms) SAVEPOINT active_record_1
229455
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
229456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229457
+  (0.0ms) SAVEPOINT active_record_1
229458
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229460
+  (0.0ms) SAVEPOINT active_record_1
229461
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
229462
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 2]]
229463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229464
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
229465
+  (0.1ms) DELETE FROM "users";
229466
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229467
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229468
+  (0.0ms) DELETE FROM "notifiable_apps";
229469
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229470
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229471
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
229472
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229473
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229474
+  (0.0ms) DELETE FROM "notifiable_notifications";
229475
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229476
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229477
+  (0.1ms) DELETE FROM "notifiable_statuses";
229478
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229479
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229480
+  (0.5ms) rollback transaction
229481
+  (0.1ms) begin transaction
229482
+  (0.0ms) SAVEPOINT active_record_1
229483
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229485
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
229486
+  (0.0ms) SAVEPOINT active_record_1
229487
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229489
+  (0.0ms) SAVEPOINT active_record_1
229490
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229492
+  (0.0ms) SAVEPOINT active_record_1
229493
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
229494
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229495
+  (0.1ms) SAVEPOINT active_record_1
229496
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229498
+  (0.0ms) SAVEPOINT active_record_1
229499
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
229500
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229502
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
229503
+  (0.1ms) SAVEPOINT active_record_1
229504
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229506
+  (0.0ms) SAVEPOINT active_record_1
229507
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229509
+  (0.0ms) SAVEPOINT active_record_1
229510
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
229511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229512
+  (0.0ms) SAVEPOINT active_record_1
229513
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229515
+  (0.0ms) SAVEPOINT active_record_1
229516
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
229517
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 2]]
229518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229519
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
229520
+  (0.0ms) DELETE FROM "users";
229521
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229522
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229523
+  (0.0ms) DELETE FROM "notifiable_apps";
229524
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229525
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229526
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229527
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229528
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229529
+  (0.0ms) DELETE FROM "notifiable_notifications";
229530
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229531
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229532
+  (0.1ms) DELETE FROM "notifiable_statuses";
229533
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229534
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229535
+  (0.5ms) rollback transaction
229536
+  (0.1ms) begin transaction
229537
+  (0.0ms) SAVEPOINT active_record_1
229538
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229540
+  (0.0ms) SAVEPOINT active_record_1
229541
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
229542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229543
+  (0.0ms) SAVEPOINT active_record_1
229544
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229546
+  (0.0ms) SAVEPOINT active_record_1
229547
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
229548
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :sms], ["token", "ABCD14"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229550
+  (0.1ms) SAVEPOINT active_record_1
229551
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229553
+  (0.0ms) SAVEPOINT active_record_1
229554
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
229556
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
229557
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
229558
+  (0.0ms) DELETE FROM "users";
229559
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229560
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
229561
+  (0.0ms) DELETE FROM "notifiable_apps";
229562
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229563
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229564
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229565
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229566
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229567
+  (0.0ms) DELETE FROM "notifiable_notifications";
229568
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229569
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229570
+  (0.0ms) DELETE FROM "notifiable_statuses";
229571
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229572
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229573
+  (0.5ms) rollback transaction
229574
+  (0.1ms) begin transaction
229575
+  (0.0ms) SAVEPOINT active_record_1
229576
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229578
+  (0.0ms) SAVEPOINT active_record_1
229579
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
229581
+  (0.0ms) SAVEPOINT active_record_1
229582
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
229583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229584
+  (0.0ms) SAVEPOINT active_record_1
229585
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229587
+  (0.0ms) SAVEPOINT active_record_1
229588
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
229589
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229591
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
229592
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
229593
+  (0.0ms) DELETE FROM "users";
229594
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229595
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
229596
+  (0.0ms) DELETE FROM "notifiable_apps";
229597
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229598
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229599
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229600
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229601
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229602
+  (0.1ms) DELETE FROM "notifiable_notifications";
229603
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229604
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229605
+  (0.0ms) DELETE FROM "notifiable_statuses";
229606
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229607
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229608
+  (0.3ms) rollback transaction
229609
+  (0.0ms) begin transaction
229610
+  (0.0ms) SAVEPOINT active_record_1
229611
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229612
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229613
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
229614
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
229615
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
229616
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
229617
+  (0.1ms) DELETE FROM "users";
229618
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229619
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229620
+  (0.0ms) DELETE FROM "notifiable_apps";
229621
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229622
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229623
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
229624
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229625
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229626
+  (0.1ms) DELETE FROM "notifiable_notifications";
229627
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229628
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229629
+  (0.0ms) DELETE FROM "notifiable_statuses";
229630
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229631
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229632
+  (0.4ms) rollback transaction
229633
+  (0.1ms) begin transaction
229634
+  (0.0ms) SAVEPOINT active_record_1
229635
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229637
+  (0.0ms) SAVEPOINT active_record_1
229638
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229640
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
229641
+  (0.1ms) DELETE FROM "users";
229642
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229643
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229644
+  (0.0ms) DELETE FROM "notifiable_apps";
229645
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229646
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229647
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
229648
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229649
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229650
+  (0.0ms) DELETE FROM "notifiable_notifications";
229651
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229652
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229653
+  (0.1ms) DELETE FROM "notifiable_statuses";
229654
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229655
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229656
+  (0.3ms) rollback transaction
229657
+  (0.1ms) begin transaction
229658
+  (0.0ms) SAVEPOINT active_record_1
229659
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229661
+  (0.0ms) SAVEPOINT active_record_1
229662
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229664
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
229665
+  (0.1ms) DELETE FROM "users";
229666
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229667
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229668
+  (0.0ms) DELETE FROM "notifiable_apps";
229669
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229670
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229671
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
229672
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229673
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229674
+  (0.0ms) DELETE FROM "notifiable_notifications";
229675
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229676
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229677
+  (0.0ms) DELETE FROM "notifiable_statuses";
229678
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229679
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229680
+  (0.4ms) rollback transaction
229681
+  (0.0ms) begin transaction
229682
+  (0.0ms) SAVEPOINT active_record_1
229683
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229685
+  (0.0ms) SAVEPOINT active_record_1
229686
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229687
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229688
+  (0.0ms) SAVEPOINT active_record_1
229689
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
229690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229691
+  (0.0ms) SAVEPOINT active_record_1
229692
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
229693
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
229694
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
229695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229696
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
229697
+  (0.1ms) DELETE FROM "users";
229698
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229699
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229700
+  (0.0ms) DELETE FROM "notifiable_apps";
229701
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229702
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229703
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
229704
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229705
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229706
+  (0.0ms) DELETE FROM "notifiable_notifications";
229707
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229708
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229709
+  (0.0ms) DELETE FROM "notifiable_statuses";
229710
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229711
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229712
+  (0.5ms) rollback transaction
229713
+  (0.1ms) begin transaction
229714
+  (0.1ms) SAVEPOINT active_record_1
229715
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
229716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229717
+  (0.0ms) SAVEPOINT active_record_1
229718
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229720
+  (0.0ms) SAVEPOINT active_record_1
229721
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
229722
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229724
+ 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
229725
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
229726
+  (0.0ms) SAVEPOINT active_record_1
229727
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229729
+  (0.0ms) SAVEPOINT active_record_1
229730
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
229731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229732
+ Processing by Notifiable::NotificationsController#opened as JSON
229733
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD16"}, "user_email"=>"person-21@example.com", "notification"=>{}}
229734
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
229735
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD16') LIMIT 1
229736
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
229737
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
229738
+ 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]]
229739
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
229740
+  (0.0ms) SAVEPOINT active_record_1
229741
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
229742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229743
+ 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]]
229744
+  (0.0ms) SAVEPOINT active_record_1
229745
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil]]
229746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229747
+ Completed 200 OK in 7ms (ActiveRecord: 1.0ms)
229748
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
229749
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
229750
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
229751
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
229752
+  (0.0ms) DELETE FROM "users";
229753
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229754
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
229755
+  (0.0ms) DELETE FROM "notifiable_apps";
229756
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229757
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229758
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229759
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229760
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229761
+  (0.0ms) DELETE FROM "notifiable_notifications";
229762
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229763
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229764
+  (0.0ms) DELETE FROM "notifiable_statuses";
229765
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229766
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229767
+  (0.5ms) rollback transaction
229768
+  (0.1ms) begin transaction
229769
+  (0.0ms) SAVEPOINT active_record_1
229770
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
229771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
229772
+  (0.0ms) SAVEPOINT active_record_1
229773
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229774
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229775
+  (0.0ms) SAVEPOINT active_record_1
229776
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
229777
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
229778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229779
+ 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
229780
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
229781
+  (0.0ms) SAVEPOINT active_record_1
229782
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
229783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229784
+  (0.0ms) SAVEPOINT active_record_1
229785
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
229786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229787
+  (0.1ms) SAVEPOINT active_record_1
229788
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
229789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229790
+ Processing by Notifiable::NotificationsController#opened as JSON
229791
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD17"}, "user_email"=>"person-23@example.com", "notification"=>{}}
229792
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
229793
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD17') LIMIT 1
229794
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
229795
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
229796
+ 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]]
229797
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
229798
+ Filter chain halted as :check_authorisation! rendered or redirected
229799
+ Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
229800
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
229801
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
229802
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
229803
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
229804
+  (0.0ms) DELETE FROM "users";
229805
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229806
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229807
+  (0.0ms) DELETE FROM "notifiable_apps";
229808
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229809
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229810
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229811
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229812
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229813
+  (0.0ms) DELETE FROM "notifiable_notifications";
229814
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229815
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229816
+  (0.0ms) DELETE FROM "notifiable_statuses";
229817
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229818
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229819
+  (0.5ms) rollback transaction
229820
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
229821
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
229822
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
229823
+ Migrating to CreateUsers (20131210115648)
229824
+  (0.0ms) begin transaction
229825
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL) 
229826
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115648"]]
229827
+  (0.8ms) commit transaction
229828
+ Migrating to CreateNotifiableApps (20131210115649)
229829
+  (0.0ms) begin transaction
229830
+  (0.2ms) CREATE TABLE "notifiable_apps" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "configuration" text, "created_at" datetime, "updated_at" datetime) 
229831
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115649"]]
229832
+  (0.6ms) commit transaction
229833
+ Migrating to CreateNotifiableDeviceTokens (20131228225139)
229834
+  (0.0ms) begin transaction
229835
+  (0.2ms) CREATE TABLE "notifiable_device_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "provider" varchar(255), "device_id" varchar(255), "is_valid" boolean DEFAULT 't', "user_id" integer, "app_id" integer, "created_at" datetime, "updated_at" datetime) 
229836
+  (0.8ms) CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_device_id" ON "notifiable_device_tokens" ("device_id")
229837
+  (0.1ms) CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_token" ON "notifiable_device_tokens" ("token")
229838
+  (0.1ms) CREATE INDEX "index_notifiable_device_tokens_on_user_id" ON "notifiable_device_tokens" ("user_id")
229839
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131228225139"]]
229840
+  (0.8ms) commit transaction
229841
+ Migrating to CreateNotifiableNotifications (20131228225140)
229842
+  (0.0ms) begin transaction
229843
+  (0.2ms) CREATE TABLE "notifiable_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message" text, "params" text, "app_id" integer, "sent_count" integer DEFAULT 0, "gateway_accepted_count" integer DEFAULT 0, "opened_count" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
229844
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131228225140"]]
229845
+  (0.5ms) commit transaction
229846
+ Migrating to CreateNotifiableStatuses (20131229104039)
229847
+  (0.0ms) begin transaction
229848
+  (0.2ms) CREATE TABLE "notifiable_statuses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_id" integer, "device_token_id" integer, "status" integer)
229849
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131229104039"]]
229850
+  (0.6ms) commit transaction
229851
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
229852
+  (0.3ms) begin transaction
229853
+  (0.1ms) SAVEPOINT active_record_1
229854
+ SQL (0.4ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
229855
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229856
+  (0.1ms) SAVEPOINT active_record_1
229857
+ SQL (2.9ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
229858
+  (0.1ms) RELEASE SAVEPOINT active_record_1
229859
+  (0.1ms) SAVEPOINT active_record_1
229860
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
229861
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
229862
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229863
+  (0.0ms) SAVEPOINT active_record_1
229864
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
229865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229866
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
229867
+  (0.0ms) DELETE FROM "users";
229868
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229869
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229870
+  (0.0ms) DELETE FROM "notifiable_apps";
229871
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229872
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229873
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229874
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229875
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229876
+  (0.0ms) DELETE FROM "notifiable_notifications";
229877
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229878
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229879
+  (0.1ms) DELETE FROM "notifiable_statuses";
229880
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229881
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229882
+  (6.4ms) rollback transaction
229883
+  (0.0ms) begin transaction
229884
+  (0.0ms) SAVEPOINT active_record_1
229885
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
229886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229887
+  (0.0ms) SAVEPOINT active_record_1
229888
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
229889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229890
+  (0.0ms) SAVEPOINT active_record_1
229891
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
229892
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
229893
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229894
+  (0.0ms) SAVEPOINT active_record_1
229895
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
229896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229897
+  (0.0ms) DELETE FROM "users";
229898
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229899
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229900
+  (0.0ms) DELETE FROM "notifiable_apps";
229901
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229902
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229903
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229904
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229905
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229906
+  (0.0ms) DELETE FROM "notifiable_notifications";
229907
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229908
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229909
+  (0.0ms) DELETE FROM "notifiable_statuses";
229910
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229911
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229912
+  (0.5ms) rollback transaction
229913
+  (0.0ms) begin transaction
229914
+  (0.0ms) SAVEPOINT active_record_1
229915
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
229916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229917
+  (0.1ms) SAVEPOINT active_record_1
229918
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
229919
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229920
+  (0.1ms) SAVEPOINT active_record_1
229921
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
229922
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
229923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229924
+  (0.0ms) SAVEPOINT active_record_1
229925
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
229926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229927
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
229928
+  (0.1ms) DELETE FROM "users";
229929
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229930
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
229931
+  (0.0ms) DELETE FROM "notifiable_apps";
229932
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229933
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229934
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229935
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229936
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229937
+  (0.0ms) DELETE FROM "notifiable_notifications";
229938
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229939
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229940
+  (0.1ms) DELETE FROM "notifiable_statuses";
229941
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229942
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229943
+  (0.5ms) rollback transaction
229944
+  (0.0ms) begin transaction
229945
+  (0.0ms) SAVEPOINT active_record_1
229946
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
229947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229948
+  (0.0ms) SAVEPOINT active_record_1
229949
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
229950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229951
+  (0.0ms) SAVEPOINT active_record_1
229952
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
229953
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
229954
+  (0.1ms) RELEASE SAVEPOINT active_record_1
229955
+ 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
229956
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
229957
+  (0.0ms) SAVEPOINT active_record_1
229958
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
229959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229960
+  (0.1ms) SAVEPOINT active_record_1
229961
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
229962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229963
+ Processing by Notifiable::NotificationsController#opened as JSON
229964
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD4"}, "user_email"=>"person-4@example.com", "notification"=>{}}
229965
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
229966
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD4') LIMIT 1
229967
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
229968
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
229969
+ 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]]
229970
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
229971
+  (0.0ms) SAVEPOINT active_record_1
229972
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
229973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229974
+ 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]]
229975
+  (0.0ms) SAVEPOINT active_record_1
229976
+ SQL (0.2ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil]]
229977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229978
+ Completed 200 OK in 8ms (ActiveRecord: 1.0ms)
229979
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
229980
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
229981
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
229982
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
229983
+  (0.1ms) DELETE FROM "users";
229984
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229985
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
229986
+  (0.0ms) DELETE FROM "notifiable_apps";
229987
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229988
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
229989
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
229990
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229991
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
229992
+  (0.0ms) DELETE FROM "notifiable_notifications";
229993
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229994
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
229995
+  (0.0ms) DELETE FROM "notifiable_statuses";
229996
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
229997
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
229998
+  (0.5ms) rollback transaction
229999
+  (0.1ms) begin transaction
230000
+  (0.1ms) SAVEPOINT active_record_1
230001
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
230002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230003
+  (0.1ms) SAVEPOINT active_record_1
230004
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230006
+  (0.0ms) SAVEPOINT active_record_1
230007
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
230008
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
230009
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230010
+ 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
230011
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
230012
+  (0.0ms) SAVEPOINT active_record_1
230013
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230015
+  (0.0ms) SAVEPOINT active_record_1
230016
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
230017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230018
+  (0.0ms) SAVEPOINT active_record_1
230019
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
230020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230021
+ Processing by Notifiable::NotificationsController#opened as JSON
230022
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD5"}, "user_email"=>"person-6@example.com", "notification"=>{}}
230023
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
230024
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD5') LIMIT 1
230025
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
230026
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
230027
+ 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]]
230028
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
230029
+ Filter chain halted as :check_authorisation! rendered or redirected
230030
+ Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
230031
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
230032
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
230033
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
230034
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
230035
+  (0.1ms) DELETE FROM "users";
230036
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230037
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
230038
+  (0.0ms) DELETE FROM "notifiable_apps";
230039
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230040
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230041
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230042
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230043
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230044
+  (0.0ms) DELETE FROM "notifiable_notifications";
230045
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230046
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230047
+  (0.0ms) DELETE FROM "notifiable_statuses";
230048
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230049
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230050
+  (0.6ms) rollback transaction
230051
+  (0.0ms) begin transaction
230052
+  (0.0ms) SAVEPOINT active_record_1
230053
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230055
+  (0.0ms) SAVEPOINT active_record_1
230056
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230058
+  (0.0ms) SAVEPOINT active_record_1
230059
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
230060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230061
+  (0.0ms) SAVEPOINT active_record_1
230062
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230064
+  (0.0ms) SAVEPOINT active_record_1
230065
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
230066
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
230067
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230068
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
230069
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
230070
+  (0.0ms) DELETE FROM "users";
230071
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230072
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230073
+  (0.0ms) DELETE FROM "notifiable_apps";
230074
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230075
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230076
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230077
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230078
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230079
+  (0.0ms) DELETE FROM "notifiable_notifications";
230080
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230081
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230082
+  (0.0ms) DELETE FROM "notifiable_statuses";
230083
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230084
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230085
+  (0.4ms) rollback transaction
230086
+  (0.0ms) begin transaction
230087
+  (0.0ms) SAVEPOINT active_record_1
230088
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230090
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
230091
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
230092
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
230093
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
230094
+  (0.1ms) DELETE FROM "users";
230095
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230096
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230097
+  (0.0ms) DELETE FROM "notifiable_apps";
230098
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230099
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230100
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
230101
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230102
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230103
+  (0.0ms) DELETE FROM "notifiable_notifications";
230104
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230105
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230106
+  (0.0ms) DELETE FROM "notifiable_statuses";
230107
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230108
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230109
+  (0.4ms) rollback transaction
230110
+  (0.0ms) begin transaction
230111
+  (0.0ms) SAVEPOINT active_record_1
230112
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230114
+  (0.0ms) SAVEPOINT active_record_1
230115
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230117
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
230118
+  (0.1ms) DELETE FROM "users";
230119
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230120
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230121
+  (0.0ms) DELETE FROM "notifiable_apps";
230122
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230123
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230124
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
230125
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230126
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230127
+  (0.0ms) DELETE FROM "notifiable_notifications";
230128
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230129
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230130
+  (0.0ms) DELETE FROM "notifiable_statuses";
230131
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230132
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230133
+  (0.5ms) rollback transaction
230134
+  (0.0ms) begin transaction
230135
+  (0.0ms) SAVEPOINT active_record_1
230136
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230138
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
230139
+  (0.1ms) SAVEPOINT active_record_1
230140
+ SQL (0.6ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230142
+  (0.0ms) SAVEPOINT active_record_1
230143
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230145
+  (0.0ms) SAVEPOINT active_record_1
230146
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
230147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230148
+  (0.0ms) SAVEPOINT active_record_1
230149
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230151
+  (0.0ms) SAVEPOINT active_record_1
230152
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
230153
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
230154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230155
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
230156
+  (0.0ms) SAVEPOINT active_record_1
230157
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
230158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230159
+  (0.0ms) SAVEPOINT active_record_1
230160
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230162
+  (0.0ms) SAVEPOINT active_record_1
230163
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
230164
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 2]]
230165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230166
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
230167
+  (0.0ms) DELETE FROM "users";
230168
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230169
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230170
+  (0.1ms) DELETE FROM "notifiable_apps";
230171
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230172
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230173
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230174
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230175
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230176
+  (0.0ms) DELETE FROM "notifiable_notifications";
230177
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230178
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230179
+  (0.0ms) DELETE FROM "notifiable_statuses";
230180
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230181
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230182
+  (0.5ms) rollback transaction
230183
+  (0.0ms) begin transaction
230184
+  (0.0ms) SAVEPOINT active_record_1
230185
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230187
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
230188
+  (0.0ms) SAVEPOINT active_record_1
230189
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230191
+  (0.0ms) SAVEPOINT active_record_1
230192
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230194
+  (0.0ms) SAVEPOINT active_record_1
230195
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
230196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230197
+  (0.0ms) SAVEPOINT active_record_1
230198
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230200
+  (0.0ms) SAVEPOINT active_record_1
230201
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
230202
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
230203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230204
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
230205
+  (0.0ms) SAVEPOINT active_record_1
230206
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230208
+  (0.0ms) SAVEPOINT active_record_1
230209
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230211
+  (0.0ms) SAVEPOINT active_record_1
230212
+ SQL (0.0ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
230213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230214
+  (0.0ms) SAVEPOINT active_record_1
230215
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230217
+  (0.0ms) SAVEPOINT active_record_1
230218
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
230219
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 2]]
230220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230221
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
230222
+  (0.0ms) DELETE FROM "users";
230223
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230224
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230225
+  (0.0ms) DELETE FROM "notifiable_apps";
230226
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230227
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230228
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230229
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230230
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230231
+  (0.0ms) DELETE FROM "notifiable_notifications";
230232
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230233
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230234
+  (0.1ms) DELETE FROM "notifiable_statuses";
230235
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230236
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230237
+  (0.5ms) rollback transaction
230238
+  (0.0ms) begin transaction
230239
+  (0.0ms) SAVEPOINT active_record_1
230240
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230242
+  (0.0ms) SAVEPOINT active_record_1
230243
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
230244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230245
+  (0.0ms) SAVEPOINT active_record_1
230246
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230248
+  (0.0ms) SAVEPOINT active_record_1
230249
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
230250
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :sms], ["token", "ABCD11"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
230251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230252
+  (0.0ms) SAVEPOINT active_record_1
230253
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230255
+  (0.0ms) SAVEPOINT active_record_1
230256
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230258
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
230259
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
230260
+  (0.0ms) DELETE FROM "users";
230261
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230262
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230263
+  (0.0ms) DELETE FROM "notifiable_apps";
230264
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230265
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230266
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230267
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230268
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230269
+  (0.0ms) DELETE FROM "notifiable_notifications";
230270
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230271
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230272
+  (0.0ms) DELETE FROM "notifiable_statuses";
230273
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230274
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230275
+  (0.5ms) rollback transaction
230276
+  (0.0ms) begin transaction
230277
+  (0.0ms) SAVEPOINT active_record_1
230278
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230280
+  (0.0ms) SAVEPOINT active_record_1
230281
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230282
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230283
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
230284
+  (0.1ms) DELETE FROM "users";
230285
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230286
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230287
+  (0.0ms) DELETE FROM "notifiable_apps";
230288
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230289
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230290
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
230291
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230292
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230293
+  (0.0ms) DELETE FROM "notifiable_notifications";
230294
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230295
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230296
+  (0.1ms) DELETE FROM "notifiable_statuses";
230297
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230298
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230299
+  (0.4ms) rollback transaction
230300
+  (0.0ms) begin transaction
230301
+  (0.0ms) SAVEPOINT active_record_1
230302
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230304
+  (0.0ms) SAVEPOINT active_record_1
230305
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230307
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
230308
+  (0.1ms) DELETE FROM "users";
230309
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230310
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230311
+  (0.0ms) DELETE FROM "notifiable_apps";
230312
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230313
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230314
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
230315
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230316
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230317
+  (0.0ms) DELETE FROM "notifiable_notifications";
230318
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230319
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230320
+  (0.0ms) DELETE FROM "notifiable_statuses";
230321
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230322
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230323
+  (0.4ms) rollback transaction
230324
+  (0.1ms) begin transaction
230325
+  (0.0ms) SAVEPOINT active_record_1
230326
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230328
+  (0.0ms) SAVEPOINT active_record_1
230329
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230331
+  (0.0ms) SAVEPOINT active_record_1
230332
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
230333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230334
+  (0.0ms) SAVEPOINT active_record_1
230335
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
230336
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
230337
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
230338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230339
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
230340
+  (0.1ms) DELETE FROM "users";
230341
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230342
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
230343
+  (0.0ms) DELETE FROM "notifiable_apps";
230344
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230345
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230346
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
230347
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230348
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230349
+  (0.0ms) DELETE FROM "notifiable_notifications";
230350
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230351
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230352
+  (0.0ms) DELETE FROM "notifiable_statuses";
230353
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230354
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230355
+  (0.4ms) rollback transaction
230356
+  (0.1ms) begin transaction
230357
+  (0.0ms) SAVEPOINT active_record_1
230358
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
230359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230360
+  (0.0ms) SAVEPOINT active_record_1
230361
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230363
+  (0.0ms) SAVEPOINT active_record_1
230364
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
230365
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
230366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230367
+ 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
230368
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
230369
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
230370
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
230371
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
230372
+ Filter chain halted as :ensure_current_notifiable_user! rendered or redirected
230373
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
230374
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12'
230375
+  (0.1ms) DELETE FROM "users";
230376
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230377
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230378
+  (0.0ms) DELETE FROM "notifiable_apps";
230379
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230380
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230381
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230382
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230383
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230384
+  (0.0ms) DELETE FROM "notifiable_notifications";
230385
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230386
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230387
+  (0.0ms) DELETE FROM "notifiable_statuses";
230388
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230389
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230390
+  (0.5ms) rollback transaction
230391
+  (0.0ms) begin transaction
230392
+  (0.0ms) SAVEPOINT active_record_1
230393
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230395
+ Processing by Notifiable::DeviceTokensController#create as JSON
230396
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
230397
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
230398
+ Unpermitted parameters: device_token
230399
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
230400
+  (0.0ms) SAVEPOINT active_record_1
230401
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
230402
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
230403
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230405
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
230406
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
230407
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
230408
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
230409
+  (0.0ms) SELECT COUNT(*) FROM "users"
230410
+  (0.1ms) DELETE FROM "users";
230411
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230412
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
230413
+  (0.0ms) DELETE FROM "notifiable_apps";
230414
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230415
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230416
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230417
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230418
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230419
+  (0.1ms) DELETE FROM "notifiable_notifications";
230420
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230421
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230422
+  (0.0ms) DELETE FROM "notifiable_statuses";
230423
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230424
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230425
+  (0.5ms) rollback transaction
230426
+  (0.1ms) begin transaction
230427
+  (0.1ms) SAVEPOINT active_record_1
230428
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
230429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230430
+  (0.0ms) SAVEPOINT active_record_1
230431
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230433
+  (0.0ms) SAVEPOINT active_record_1
230434
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
230435
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
230436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230437
+ 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
230438
+ Processing by Notifiable::DeviceTokensController#update as JSON
230439
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-15@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
230440
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
230441
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
230442
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
230443
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
230444
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
230445
+ Unpermitted parameters: id, user_email, device_token
230446
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
230447
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
230448
+  (0.0ms) SAVEPOINT active_record_1
230449
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
230450
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
230451
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230453
+ Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.8ms)
230454
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
230455
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
230456
+  (0.1ms) DELETE FROM "users";
230457
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230458
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230459
+  (0.0ms) DELETE FROM "notifiable_apps";
230460
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230461
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230462
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230463
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230464
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230465
+  (0.0ms) DELETE FROM "notifiable_notifications";
230466
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230467
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230468
+  (0.1ms) DELETE FROM "notifiable_statuses";
230469
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230470
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230471
+  (0.5ms) rollback transaction
230472
+  (0.1ms) begin transaction
230473
+  (0.1ms) SAVEPOINT active_record_1
230474
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
230475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230476
+ Processing by Notifiable::DeviceTokensController#create as JSON
230477
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-16@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
230478
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
230479
+ Unpermitted parameters: device_id, user_email, device_token
230480
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
230481
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
230482
+  (0.0ms) SAVEPOINT active_record_1
230483
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
230484
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
230485
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
230486
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
230487
+  (0.3ms) DELETE FROM "users";
230488
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230489
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
230490
+  (0.1ms) DELETE FROM "notifiable_apps";
230491
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230492
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230493
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
230494
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230495
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230496
+  (0.1ms) DELETE FROM "notifiable_notifications";
230497
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230498
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230499
+  (0.1ms) DELETE FROM "notifiable_statuses";
230500
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230501
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230502
+  (0.5ms) rollback transaction
230503
+  (0.1ms) begin transaction
230504
+  (0.0ms) SAVEPOINT active_record_1
230505
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
230506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230507
+  (0.0ms) SAVEPOINT active_record_1
230508
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230510
+  (0.0ms) SAVEPOINT active_record_1
230511
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
230512
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
230513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230514
+ 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
230515
+  (0.0ms) SAVEPOINT active_record_1
230516
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230518
+ Processing by Notifiable::DeviceTokensController#create as JSON
230519
+ Parameters: {"token"=>"ABCD14", "provider"=>"mock", "app_id"=>"2", "device_token"=>{"token"=>"ABCD14", "provider"=>"mock", "app_id"=>"2"}}
230520
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
230521
+ Unpermitted parameters: device_token
230522
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
230523
+  (0.1ms) SAVEPOINT active_record_1
230524
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
230525
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD14' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
230526
+ SQL (0.1ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230528
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.5ms)
230529
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
230530
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
230531
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
230532
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
230533
+  (0.1ms) DELETE FROM "users";
230534
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230535
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230536
+  (0.0ms) DELETE FROM "notifiable_apps";
230537
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230538
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230539
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230540
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230541
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230542
+  (0.0ms) DELETE FROM "notifiable_notifications";
230543
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230544
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230545
+  (0.1ms) DELETE FROM "notifiable_statuses";
230546
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230547
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230548
+  (0.4ms) rollback transaction
230549
+  (0.0ms) begin transaction
230550
+  (0.0ms) SAVEPOINT active_record_1
230551
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
230552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230553
+  (0.0ms) SAVEPOINT active_record_1
230554
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230556
+  (0.0ms) SAVEPOINT active_record_1
230557
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
230558
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
230559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230560
+ 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
230561
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
230562
+ Parameters: {"id"=>"1", "user_email"=>"person-18@example.com", "device_token"=>{"id"=>"1"}}
230563
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
230564
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
230565
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
230566
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
230567
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
230568
+  (0.0ms) SAVEPOINT active_record_1
230569
+ SQL (0.1ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
230570
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230571
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
230572
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
230573
+  (0.1ms) DELETE FROM "users";
230574
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230575
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230576
+  (0.0ms) DELETE FROM "notifiable_apps";
230577
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230578
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230579
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230580
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230581
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230582
+  (0.1ms) DELETE FROM "notifiable_notifications";
230583
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230584
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230585
+  (0.0ms) DELETE FROM "notifiable_statuses";
230586
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230587
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230588
+  (0.5ms) rollback transaction
230589
+  (0.1ms) begin transaction
230590
+  (0.0ms) SAVEPOINT active_record_1
230591
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
230592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230593
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
230594
+ Parameters: {"id"=>"59", "user_email"=>"person-19@example.com", "device_token"=>{"id"=>"59"}}
230595
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
230596
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
230597
+  (0.0ms) SAVEPOINT active_record_1
230598
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
230599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230600
+  (0.0ms) SAVEPOINT active_record_1
230601
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230603
+  (0.0ms) SAVEPOINT active_record_1
230604
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
230605
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 2]]
230606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230607
+ 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
230608
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16'
230609
+  (0.1ms) DELETE FROM "users";
230610
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230611
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230612
+  (0.1ms) DELETE FROM "notifiable_apps";
230613
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230614
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230615
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230616
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230617
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230618
+  (0.1ms) DELETE FROM "notifiable_notifications";
230619
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230620
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230621
+  (0.0ms) DELETE FROM "notifiable_statuses";
230622
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230623
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230624
+  (0.4ms) rollback transaction
230625
+  (0.0ms) begin transaction
230626
+  (0.0ms) SAVEPOINT active_record_1
230627
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
230628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230629
+  (0.1ms) SAVEPOINT active_record_1
230630
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
230631
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230632
+  (0.0ms) SAVEPOINT active_record_1
230633
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
230634
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
230635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230636
+ 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
230637
+  (0.0ms) SAVEPOINT active_record_1
230638
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
230639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230640
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
230641
+ Parameters: {"id"=>"1", "user_email"=>"person-22@example.com", "device_token"=>{"id"=>"1"}}
230642
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
230643
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
230644
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
230645
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
230646
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
230647
+ Filter chain halted as :ensure_authorized! rendered or redirected
230648
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
230649
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17'
230650
+  (0.1ms) DELETE FROM "users";
230651
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230652
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
230653
+  (0.0ms) DELETE FROM "notifiable_apps";
230654
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230655
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230656
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230657
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230658
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230659
+  (0.1ms) DELETE FROM "notifiable_notifications";
230660
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230661
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230662
+  (0.0ms) DELETE FROM "notifiable_statuses";
230663
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230664
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230665
+  (0.5ms) rollback transaction
230666
+  (0.0ms) begin transaction
230667
+  (0.0ms) SAVEPOINT active_record_1
230668
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
230669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230670
+  (0.0ms) SAVEPOINT active_record_1
230671
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:23 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:23 UTC +00:00]]
230672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230673
+ Processing by Notifiable::DeviceTokensController#create as JSON
230674
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-23@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
230675
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
230676
+ Unpermitted parameters: user_email, device_token
230677
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
230678
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
230679
+  (0.0ms) SAVEPOINT active_record_1
230680
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
230681
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
230682
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:23 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:26:23 UTC +00:00], ["user_id", 1]]
230683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230684
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)
230685
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
230686
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
230687
+ 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
230688
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
230689
+  (0.1ms) DELETE FROM "users";
230690
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230691
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230692
+  (0.0ms) DELETE FROM "notifiable_apps";
230693
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230694
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230695
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230696
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230697
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230698
+  (0.1ms) DELETE FROM "notifiable_notifications";
230699
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230700
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230701
+  (0.1ms) DELETE FROM "notifiable_statuses";
230702
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230703
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230704
+  (0.5ms) rollback transaction
230705
+  (6.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
230706
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
230707
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
230708
+ Migrating to CreateUsers (20131210115648)
230709
+  (0.0ms) begin transaction
230710
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL) 
230711
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115648"]]
230712
+  (0.8ms) commit transaction
230713
+ Migrating to CreateNotifiableApps (20131210115649)
230714
+  (0.1ms) begin transaction
230715
+  (0.2ms) CREATE TABLE "notifiable_apps" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "configuration" text, "created_at" datetime, "updated_at" datetime) 
230716
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115649"]]
230717
+  (0.6ms) commit transaction
230718
+ Migrating to CreateNotifiableDeviceTokens (20131228225139)
230719
+  (0.0ms) begin transaction
230720
+  (0.2ms) CREATE TABLE "notifiable_device_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "provider" varchar(255), "device_id" varchar(255), "is_valid" boolean DEFAULT 't', "user_id" integer, "app_id" integer, "created_at" datetime, "updated_at" datetime) 
230721
+  (0.6ms) CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_device_id" ON "notifiable_device_tokens" ("device_id")
230722
+  (0.1ms) CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_token" ON "notifiable_device_tokens" ("token")
230723
+  (0.1ms) CREATE INDEX "index_notifiable_device_tokens_on_user_id" ON "notifiable_device_tokens" ("user_id")
230724
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131228225139"]]
230725
+  (0.7ms) commit transaction
230726
+ Migrating to CreateNotifiableNotifications (20131228225140)
230727
+  (0.0ms) begin transaction
230728
+  (0.2ms) CREATE TABLE "notifiable_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message" text, "params" text, "app_id" integer, "sent_count" integer DEFAULT 0, "gateway_accepted_count" integer DEFAULT 0, "opened_count" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
230729
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131228225140"]]
230730
+  (0.6ms) commit transaction
230731
+ Migrating to CreateNotifiableStatuses (20131229104039)
230732
+  (0.0ms) begin transaction
230733
+  (0.2ms) CREATE TABLE "notifiable_statuses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_id" integer, "device_token_id" integer, "status" integer)
230734
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131229104039"]]
230735
+  (0.8ms) commit transaction
230736
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
230737
+  (6.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
230738
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
230739
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
230740
+ Migrating to CreateUsers (20131210115648)
230741
+  (0.0ms) begin transaction
230742
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL) 
230743
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115648"]]
230744
+  (0.7ms) commit transaction
230745
+ Migrating to CreateNotifiableApps (20131210115649)
230746
+  (0.1ms) begin transaction
230747
+  (0.2ms) CREATE TABLE "notifiable_apps" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "configuration" text, "created_at" datetime, "updated_at" datetime) 
230748
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115649"]]
230749
+  (0.6ms) commit transaction
230750
+ Migrating to CreateNotifiableDeviceTokens (20131228225139)
230751
+  (0.0ms) begin transaction
230752
+  (0.2ms) CREATE TABLE "notifiable_device_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "provider" varchar(255), "device_id" varchar(255), "is_valid" boolean DEFAULT 't', "user_id" integer, "app_id" integer, "created_at" datetime, "updated_at" datetime) 
230753
+  (0.7ms) CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_device_id" ON "notifiable_device_tokens" ("device_id")
230754
+  (0.1ms) CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_token" ON "notifiable_device_tokens" ("token")
230755
+  (0.1ms) CREATE INDEX "index_notifiable_device_tokens_on_user_id" ON "notifiable_device_tokens" ("user_id")
230756
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131228225139"]]
230757
+  (0.6ms) commit transaction
230758
+ Migrating to CreateNotifiableNotifications (20131228225140)
230759
+  (0.0ms) begin transaction
230760
+  (0.2ms) CREATE TABLE "notifiable_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message" text, "params" text, "app_id" integer, "sent_count" integer DEFAULT 0, "gateway_accepted_count" integer DEFAULT 0, "opened_count" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
230761
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131228225140"]]
230762
+  (0.6ms) commit transaction
230763
+ Migrating to CreateNotifiableStatuses (20131229104039)
230764
+  (0.0ms) begin transaction
230765
+  (0.2ms) CREATE TABLE "notifiable_statuses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_id" integer, "device_token_id" integer, "status" integer, "created_at" datetime)
230766
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131229104039"]]
230767
+  (0.6ms) commit transaction
230768
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
230769
+  (0.3ms) begin transaction
230770
+  (0.1ms) SAVEPOINT active_record_1
230771
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-1@example.com"]]
230772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230773
+  (0.0ms) SAVEPOINT active_record_1
230774
+ SQL (3.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230776
+  (0.0ms) SAVEPOINT active_record_1
230777
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1
230778
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
230779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230780
+ 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
230781
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
230782
+  (0.0ms) SAVEPOINT active_record_1
230783
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230785
+  (0.0ms) SAVEPOINT active_record_1
230786
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
230787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230788
+ Processing by Notifiable::NotificationsController#opened as JSON
230789
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD1"}, "user_email"=>"person-1@example.com", "notification"=>{}}
230790
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
230791
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD1') LIMIT 1
230792
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
230793
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
230794
+ 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]]
230795
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
230796
+  (0.0ms) SAVEPOINT active_record_1
230797
+ SQL (0.1ms) UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
230798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230799
+ 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]]
230800
+  (0.0ms) SAVEPOINT active_record_1
230801
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
230802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230803
+ Completed 200 OK in 8ms (ActiveRecord: 0.9ms)
230804
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
230805
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
230806
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
230807
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
230808
+  (0.0ms) DELETE FROM "users";
230809
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230810
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
230811
+  (0.0ms) DELETE FROM "notifiable_apps";
230812
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230813
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230814
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230815
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230816
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230817
+  (0.0ms) DELETE FROM "notifiable_notifications";
230818
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230819
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230820
+  (0.0ms) DELETE FROM "notifiable_statuses";
230821
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230822
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230823
+  (0.5ms) rollback transaction
230824
+  (0.0ms) begin transaction
230825
+  (0.0ms) SAVEPOINT active_record_1
230826
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
230827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230828
+  (0.0ms) SAVEPOINT active_record_1
230829
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230831
+  (0.0ms) SAVEPOINT active_record_1
230832
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
230833
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
230834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230835
+ 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
230836
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
230837
+  (0.1ms) SAVEPOINT active_record_1
230838
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230840
+  (0.0ms) SAVEPOINT active_record_1
230841
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
230842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230843
+  (0.1ms) SAVEPOINT active_record_1
230844
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
230845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230846
+ Processing by Notifiable::NotificationsController#opened as JSON
230847
+ Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD2"}, "user_email"=>"person-3@example.com", "notification"=>{}}
230848
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
230849
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD2') LIMIT 1
230850
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
230851
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
230852
+ 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]]
230853
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
230854
+ Filter chain halted as :check_authorisation! rendered or redirected
230855
+ Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
230856
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
230857
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
230858
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_notifications"
230859
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
230860
+  (0.1ms) DELETE FROM "users";
230861
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230862
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
230863
+  (0.0ms) DELETE FROM "notifiable_apps";
230864
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230865
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230866
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
230867
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230868
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230869
+  (0.0ms) DELETE FROM "notifiable_notifications";
230870
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230871
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230872
+  (0.0ms) DELETE FROM "notifiable_statuses";
230873
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230874
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230875
+  (0.5ms) rollback transaction
230876
+  (0.1ms) begin transaction
230877
+  (0.0ms) SAVEPOINT active_record_1
230878
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230880
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
230881
+  (0.0ms) SAVEPOINT active_record_1
230882
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230884
+  (0.0ms) SAVEPOINT active_record_1
230885
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230887
+  (0.0ms) SAVEPOINT active_record_1
230888
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
230889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230890
+  (0.0ms) SAVEPOINT active_record_1
230891
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230893
+  (0.0ms) SAVEPOINT active_record_1
230894
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
230895
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
230896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230897
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
230898
+  (0.0ms) SAVEPOINT active_record_1
230899
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230900
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230901
+  (0.0ms) SAVEPOINT active_record_1
230902
+ SQL (23.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230904
+  (0.0ms) SAVEPOINT active_record_1
230905
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
230906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230907
+  (0.0ms) SAVEPOINT active_record_1
230908
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230910
+  (0.0ms) SAVEPOINT active_record_1
230911
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
230912
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 2]]
230913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230914
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
230915
+  (0.0ms) SAVEPOINT active_record_1
230916
+ SQL (1.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
230917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230918
+  (0.0ms) SAVEPOINT active_record_1
230919
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
230920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230921
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
230922
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
230923
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
230924
+  (0.0ms) SAVEPOINT active_record_1
230925
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
230926
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
230927
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230928
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
230929
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
230930
+  (0.0ms) SAVEPOINT active_record_1
230931
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 4]]
230932
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
230933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230934
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
230935
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
230936
+ 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]]
230937
+ 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]]
230938
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
230939
+ 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]]
230940
+ 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]]
230941
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
230942
+  (0.1ms) DELETE FROM "users";
230943
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230944
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
230945
+  (0.0ms) DELETE FROM "notifiable_apps";
230946
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230947
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
230948
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
230949
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230950
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
230951
+  (0.0ms) DELETE FROM "notifiable_notifications";
230952
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230953
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
230954
+  (0.0ms) DELETE FROM "notifiable_statuses";
230955
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
230956
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
230957
+  (0.5ms) rollback transaction
230958
+  (0.0ms) begin transaction
230959
+  (0.0ms) SAVEPOINT active_record_1
230960
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230962
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
230963
+  (0.0ms) SAVEPOINT active_record_1
230964
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230966
+  (0.1ms) SAVEPOINT active_record_1
230967
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230969
+  (0.0ms) SAVEPOINT active_record_1
230970
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
230971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230972
+  (0.0ms) SAVEPOINT active_record_1
230973
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230975
+  (0.0ms) SAVEPOINT active_record_1
230976
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
230977
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
230978
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230979
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
230980
+  (0.1ms) SAVEPOINT active_record_1
230981
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
230982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230983
+  (0.0ms) SAVEPOINT active_record_1
230984
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
230985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230986
+  (0.0ms) SAVEPOINT active_record_1
230987
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
230988
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 2]]
230989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230990
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
230991
+  (0.0ms) SAVEPOINT active_record_1
230992
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
230993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230994
+  (0.0ms) SAVEPOINT active_record_1
230995
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
230996
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230997
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
230998
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
230999
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
231000
+  (0.0ms) SAVEPOINT active_record_1
231001
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
231002
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
231003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231004
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
231005
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses"
231006
+ 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]]
231007
+ 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]]
231008
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
231009
+ 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]]
231010
+ 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]]
231011
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
231012
+  (0.0ms) DELETE FROM "users";
231013
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231014
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231015
+  (0.0ms) DELETE FROM "notifiable_apps";
231016
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231017
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231018
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231019
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231020
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231021
+  (0.0ms) DELETE FROM "notifiable_notifications";
231022
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231023
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231024
+  (0.0ms) DELETE FROM "notifiable_statuses";
231025
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231026
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231027
+  (0.5ms) rollback transaction
231028
+  (0.1ms) begin transaction
231029
+  (0.0ms) SAVEPOINT active_record_1
231030
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231032
+  (0.0ms) SAVEPOINT active_record_1
231033
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
231034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231035
+  (0.0ms) SAVEPOINT active_record_1
231036
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231038
+  (0.0ms) SAVEPOINT active_record_1
231039
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
231040
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :sms], ["token", "ABCD7"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231042
+  (0.0ms) SAVEPOINT active_record_1
231043
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231045
+  (0.0ms) SAVEPOINT active_record_1
231046
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231047
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231048
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
231049
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
231050
+  (0.0ms) DELETE FROM "users";
231051
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231052
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231053
+  (0.0ms) DELETE FROM "notifiable_apps";
231054
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231055
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231056
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231057
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231058
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231059
+  (0.0ms) DELETE FROM "notifiable_notifications";
231060
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231061
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231062
+  (0.1ms) DELETE FROM "notifiable_statuses";
231063
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231064
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231065
+  (0.5ms) rollback transaction
231066
+  (0.0ms) begin transaction
231067
+  (0.0ms) SAVEPOINT active_record_1
231068
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231070
+  (0.0ms) SAVEPOINT active_record_1
231071
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231073
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
231074
+  (0.1ms) DELETE FROM "users";
231075
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231076
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231077
+  (0.0ms) DELETE FROM "notifiable_apps";
231078
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231079
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231080
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
231081
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231082
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231083
+  (0.0ms) DELETE FROM "notifiable_notifications";
231084
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231085
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231086
+  (0.0ms) DELETE FROM "notifiable_statuses";
231087
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231088
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231089
+  (0.4ms) rollback transaction
231090
+  (0.0ms) begin transaction
231091
+  (0.0ms) SAVEPOINT active_record_1
231092
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
231093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231094
+  (0.1ms) SAVEPOINT active_record_1
231095
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
231097
+  (0.0ms) SAVEPOINT active_record_1
231098
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
231099
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD8"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231101
+  (0.0ms) SAVEPOINT active_record_1
231102
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231104
+  (0.0ms) SAVEPOINT active_record_1
231105
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
231106
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231107
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
231108
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
231109
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
231110
+  (0.0ms) SAVEPOINT active_record_1
231111
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
231112
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
231113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231114
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
231115
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
231116
+  (0.0ms) DELETE FROM "users";
231117
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231118
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231119
+  (0.0ms) DELETE FROM "notifiable_apps";
231120
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231121
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231122
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231123
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231124
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231125
+  (0.0ms) DELETE FROM "notifiable_notifications";
231126
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231127
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231128
+  (0.0ms) DELETE FROM "notifiable_statuses";
231129
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231130
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231131
+  (0.5ms) rollback transaction
231132
+  (0.0ms) begin transaction
231133
+  (0.1ms) SAVEPOINT active_record_1
231134
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
231135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231136
+  (0.0ms) SAVEPOINT active_record_1
231137
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231139
+  (0.1ms) SAVEPOINT active_record_1
231140
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
231141
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD9"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231143
+  (0.1ms) SAVEPOINT active_record_1
231144
+ SQL (0.2ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231146
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
231147
+  (0.0ms) SAVEPOINT active_record_1
231148
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
231149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231150
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
231151
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
231152
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
231153
+  (0.1ms) SAVEPOINT active_record_1
231154
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
231155
+ SQL (0.1ms) UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
231156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
231157
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_statuses"
231158
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
231159
+ Notifiable::NotificationStatus Load (0.1ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
231160
+  (0.0ms) DELETE FROM "users";
231161
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231162
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
231163
+  (0.0ms) DELETE FROM "notifiable_apps";
231164
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231165
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231166
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231167
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231168
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231169
+  (0.1ms) DELETE FROM "notifiable_notifications";
231170
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231171
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231172
+  (0.0ms) DELETE FROM "notifiable_statuses";
231173
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231174
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231175
+  (0.5ms) rollback transaction
231176
+  (0.1ms) begin transaction
231177
+  (0.0ms) SAVEPOINT active_record_1
231178
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
231179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231180
+  (0.0ms) SAVEPOINT active_record_1
231181
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231183
+  (0.1ms) SAVEPOINT active_record_1
231184
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
231185
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD10"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231187
+  (0.0ms) SAVEPOINT active_record_1
231188
+ SQL (0.1ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231190
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
231191
+  (0.0ms) DELETE FROM "users";
231192
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231193
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231194
+  (0.1ms) DELETE FROM "notifiable_apps";
231195
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231196
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231197
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231198
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231199
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231200
+  (0.0ms) DELETE FROM "notifiable_notifications";
231201
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231202
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231203
+  (0.0ms) DELETE FROM "notifiable_statuses";
231204
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231205
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231206
+  (0.4ms) rollback transaction
231207
+  (0.1ms) begin transaction
231208
+  (0.0ms) SAVEPOINT active_record_1
231209
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
231210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231211
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
231212
+ Parameters: {"id"=>"59", "user_email"=>"person-12@example.com", "device_token"=>{"id"=>"59"}}
231213
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
231214
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
231215
+  (0.1ms) SAVEPOINT active_record_1
231216
+ SQL (0.3ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
231217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231218
+  (0.0ms) SAVEPOINT active_record_1
231219
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231221
+  (0.0ms) SAVEPOINT active_record_1
231222
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
231223
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 2]]
231224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231225
+ 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
231226
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'
231227
+  (0.1ms) DELETE FROM "users";
231228
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231229
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231230
+  (0.0ms) DELETE FROM "notifiable_apps";
231231
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231232
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231233
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231234
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231235
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231236
+  (0.1ms) DELETE FROM "notifiable_notifications";
231237
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231238
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231239
+  (0.1ms) DELETE FROM "notifiable_statuses";
231240
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231241
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231242
+  (0.5ms) rollback transaction
231243
+  (0.1ms) begin transaction
231244
+  (0.0ms) SAVEPOINT active_record_1
231245
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
231246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231247
+  (0.0ms) SAVEPOINT active_record_1
231248
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231250
+  (0.0ms) SAVEPOINT active_record_1
231251
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
231252
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231254
+ 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
231255
+  (0.0ms) SAVEPOINT active_record_1
231256
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231258
+ Processing by Notifiable::DeviceTokensController#create as JSON
231259
+ Parameters: {"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2", "device_token"=>{"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2"}}
231260
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
231261
+ Unpermitted parameters: device_token
231262
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
231263
+  (0.0ms) SAVEPOINT active_record_1
231264
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
231265
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD12' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
231266
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["app_id", 2], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231267
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231268
+ Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.5ms)
231269
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
231270
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
231271
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
231272
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
231273
+  (0.1ms) DELETE FROM "users";
231274
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231275
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
231276
+  (0.0ms) DELETE FROM "notifiable_apps";
231277
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231278
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231279
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231280
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231281
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231282
+  (0.1ms) DELETE FROM "notifiable_notifications";
231283
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231284
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231285
+  (0.1ms) DELETE FROM "notifiable_statuses";
231286
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231287
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231288
+  (0.5ms) rollback transaction
231289
+  (0.0ms) begin transaction
231290
+  (0.1ms) SAVEPOINT active_record_1
231291
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
231292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231293
+ Processing by Notifiable::DeviceTokensController#create as JSON
231294
+ Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-15@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
231295
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
231296
+ Unpermitted parameters: device_id, user_email, device_token
231297
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
231298
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
231299
+  (0.0ms) SAVEPOINT active_record_1
231300
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
231301
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
231302
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
231303
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
231304
+  (0.3ms) DELETE FROM "users";
231305
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231306
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
231307
+  (0.1ms) DELETE FROM "notifiable_apps";
231308
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231309
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231310
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
231311
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231312
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231313
+  (0.1ms) DELETE FROM "notifiable_notifications";
231314
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231315
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231316
+  (0.0ms) DELETE FROM "notifiable_statuses";
231317
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231318
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231319
+  (0.5ms) rollback transaction
231320
+  (0.0ms) begin transaction
231321
+  (0.0ms) SAVEPOINT active_record_1
231322
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
231323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231324
+  (0.0ms) SAVEPOINT active_record_1
231325
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231327
+  (0.0ms) SAVEPOINT active_record_1
231328
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
231329
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231331
+ 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
231332
+  (0.0ms) SAVEPOINT active_record_1
231333
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
231334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
231335
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
231336
+ Parameters: {"id"=>"1", "user_email"=>"person-17@example.com", "device_token"=>{"id"=>"1"}}
231337
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
231338
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
231339
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
231340
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
231341
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
231342
+ Filter chain halted as :ensure_authorized! rendered or redirected
231343
+ Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
231344
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13'
231345
+  (0.1ms) DELETE FROM "users";
231346
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231347
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231348
+  (0.0ms) DELETE FROM "notifiable_apps";
231349
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231350
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231351
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231352
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231353
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231354
+  (0.0ms) DELETE FROM "notifiable_notifications";
231355
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231356
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231357
+  (0.0ms) DELETE FROM "notifiable_statuses";
231358
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231359
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231360
+  (0.5ms) rollback transaction
231361
+  (0.0ms) begin transaction
231362
+  (0.0ms) SAVEPOINT active_record_1
231363
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
231364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231365
+  (0.0ms) SAVEPOINT active_record_1
231366
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231368
+ Processing by Notifiable::DeviceTokensController#create as JSON
231369
+ Parameters: {"token"=>"ABC123", "user_email"=>"person-18@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
231370
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
231371
+ Unpermitted parameters: user_email, device_token
231372
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
231373
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
231374
+  (0.0ms) SAVEPOINT active_record_1
231375
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
231376
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
231377
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231379
+ Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.6ms)
231380
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
231381
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
231382
+ 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
231383
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
231384
+  (0.1ms) DELETE FROM "users";
231385
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231386
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
231387
+  (0.1ms) DELETE FROM "notifiable_apps";
231388
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231389
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231390
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231391
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231392
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231393
+  (0.1ms) DELETE FROM "notifiable_notifications";
231394
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231395
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231396
+  (0.1ms) DELETE FROM "notifiable_statuses";
231397
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231398
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231399
+  (0.5ms) rollback transaction
231400
+  (0.1ms) begin transaction
231401
+  (0.1ms) SAVEPOINT active_record_1
231402
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
231403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231404
+  (0.0ms) SAVEPOINT active_record_1
231405
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231407
+  (0.0ms) SAVEPOINT active_record_1
231408
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
231409
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231411
+ 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
231412
+ Processing by Notifiable::DeviceTokensController#update as JSON
231413
+ Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-19@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
231414
+ Notifiable::DeviceToken Load (0.0ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
231415
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
231416
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
231417
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
231418
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
231419
+ Unpermitted parameters: id, user_email, device_token
231420
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
231421
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
231422
+  (0.0ms) SAVEPOINT active_record_1
231423
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
231424
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
231425
+ SQL (0.2ms) UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231427
+ Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.7ms)
231428
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
231429
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
231430
+  (0.0ms) DELETE FROM "users";
231431
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231432
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231433
+  (0.0ms) DELETE FROM "notifiable_apps";
231434
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231435
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231436
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231437
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231438
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231439
+  (0.1ms) DELETE FROM "notifiable_notifications";
231440
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231441
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231442
+  (0.1ms) DELETE FROM "notifiable_statuses";
231443
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231444
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231445
+  (0.4ms) rollback transaction
231446
+  (0.0ms) begin transaction
231447
+  (0.0ms) SAVEPOINT active_record_1
231448
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231450
+ Processing by Notifiable::DeviceTokensController#create as JSON
231451
+ Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
231452
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
231453
+ Unpermitted parameters: device_token
231454
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
231455
+  (0.0ms) SAVEPOINT active_record_1
231456
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
231457
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
231458
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231460
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
231461
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
231462
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
231463
+ Notifiable::App Load (0.0ms) SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
231464
+  (0.0ms) SELECT COUNT(*) FROM "users"
231465
+  (0.1ms) DELETE FROM "users";
231466
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231467
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231468
+  (0.0ms) DELETE FROM "notifiable_apps";
231469
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231470
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231471
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231472
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231473
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231474
+  (0.0ms) DELETE FROM "notifiable_notifications";
231475
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231476
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231477
+  (0.0ms) DELETE FROM "notifiable_statuses";
231478
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231479
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231480
+  (0.5ms) rollback transaction
231481
+  (0.1ms) begin transaction
231482
+  (0.1ms) SAVEPOINT active_record_1
231483
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
231484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231485
+  (0.0ms) SAVEPOINT active_record_1
231486
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231488
+  (0.0ms) SAVEPOINT active_record_1
231489
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
231490
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231492
+ 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
231493
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
231494
+ Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
231495
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
231496
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
231497
+ Filter chain halted as :ensure_current_notifiable_user! rendered or redirected
231498
+ Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
231499
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15'
231500
+  (0.0ms) DELETE FROM "users";
231501
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231502
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231503
+  (0.0ms) DELETE FROM "notifiable_apps";
231504
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231505
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231506
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231507
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231508
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231509
+  (0.0ms) DELETE FROM "notifiable_notifications";
231510
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231511
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231512
+  (0.0ms) DELETE FROM "notifiable_statuses";
231513
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231514
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231515
+  (0.5ms) rollback transaction
231516
+  (0.1ms) begin transaction
231517
+  (0.1ms) SAVEPOINT active_record_1
231518
+ SQL (0.2ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
231519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
231520
+  (0.0ms) SAVEPOINT active_record_1
231521
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231523
+  (0.0ms) SAVEPOINT active_record_1
231524
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
231525
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
231527
+ 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
231528
+ Processing by Notifiable::DeviceTokensController#destroy as JSON
231529
+ Parameters: {"id"=>"1", "user_email"=>"person-21@example.com", "device_token"=>{"id"=>"1"}}
231530
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
231531
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
231532
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
231533
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
231534
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
231535
+  (0.0ms) SAVEPOINT active_record_1
231536
+ SQL (0.2ms) DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
231537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231538
+ Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
231539
+  (0.1ms) SELECT COUNT(*) FROM "notifiable_device_tokens"
231540
+  (0.0ms) DELETE FROM "users";
231541
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231542
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
231543
+  (0.0ms) DELETE FROM "notifiable_apps";
231544
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231545
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231546
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231547
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231548
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231549
+  (0.0ms) DELETE FROM "notifiable_notifications";
231550
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231551
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231552
+  (0.1ms) DELETE FROM "notifiable_statuses";
231553
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231554
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231555
+  (0.5ms) rollback transaction
231556
+  (0.1ms) begin transaction
231557
+  (0.0ms) SAVEPOINT active_record_1
231558
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231560
+  (0.0ms) SAVEPOINT active_record_1
231561
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231563
+  (0.0ms) SAVEPOINT active_record_1
231564
+ SQL (0.1ms) INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
231565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231566
+  (0.0ms) SAVEPOINT active_record_1
231567
+ SQL (0.1ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231569
+  (0.0ms) SAVEPOINT active_record_1
231570
+ Notifiable::DeviceToken Exists (0.1ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
231571
+ SQL (0.2ms) INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
231572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231573
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
231574
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
231575
+  (0.0ms) SAVEPOINT active_record_1
231576
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["status", 200]]
231577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
231578
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
231579
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
231580
+  (0.0ms) DELETE FROM "users";
231581
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231582
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
231583
+  (0.0ms) DELETE FROM "notifiable_apps";
231584
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231585
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231586
+  (0.0ms) DELETE FROM "notifiable_device_tokens";
231587
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231588
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231589
+  (0.0ms) DELETE FROM "notifiable_notifications";
231590
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231591
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231592
+  (0.0ms) DELETE FROM "notifiable_statuses";
231593
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231594
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231595
+  (0.5ms) rollback transaction
231596
+  (0.1ms) begin transaction
231597
+  (0.0ms) SAVEPOINT active_record_1
231598
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231600
+ Notifiable::App Load (0.1ms) SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
231601
+ Notifiable::DeviceToken Load (0.1ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
231602
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
231603
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
231604
+  (0.1ms) DELETE FROM "users";
231605
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231606
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231607
+  (0.0ms) DELETE FROM "notifiable_apps";
231608
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231609
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231610
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
231611
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231612
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231613
+  (0.0ms) DELETE FROM "notifiable_notifications";
231614
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231615
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231616
+  (0.0ms) DELETE FROM "notifiable_statuses";
231617
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231618
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231619
+  (0.4ms) rollback transaction
231620
+  (0.1ms) begin transaction
231621
+  (0.0ms) SAVEPOINT active_record_1
231622
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231624
+  (0.0ms) SAVEPOINT active_record_1
231625
+ SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231627
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
231628
+  (0.1ms) DELETE FROM "users";
231629
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231630
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231631
+  (0.0ms) DELETE FROM "notifiable_apps";
231632
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231633
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231634
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
231635
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231636
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231637
+  (0.0ms) DELETE FROM "notifiable_notifications";
231638
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231639
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231640
+  (0.0ms) DELETE FROM "notifiable_statuses";
231641
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231642
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231643
+  (0.5ms) rollback transaction
231644
+  (0.1ms) begin transaction
231645
+  (0.0ms) SAVEPOINT active_record_1
231646
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231647
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231648
+  (0.0ms) SAVEPOINT active_record_1
231649
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231651
+ Notifiable::Notification Load (0.1ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
231652
+  (0.1ms) DELETE FROM "users";
231653
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231654
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
231655
+  (0.0ms) DELETE FROM "notifiable_apps";
231656
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231657
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231658
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
231659
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231660
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231661
+  (0.0ms) DELETE FROM "notifiable_notifications";
231662
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231663
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231664
+  (0.0ms) DELETE FROM "notifiable_statuses";
231665
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231666
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231667
+  (0.4ms) rollback transaction
231668
+  (0.1ms) begin transaction
231669
+  (0.0ms) SAVEPOINT active_record_1
231670
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231672
+  (0.0ms) SAVEPOINT active_record_1
231673
+ SQL (0.7ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
231674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231675
+  (0.0ms) SAVEPOINT active_record_1
231676
+ SQL (0.1ms) INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["notification_id", 1]]
231677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231678
+  (0.0ms) SAVEPOINT active_record_1
231679
+ Notifiable::NotificationStatus Load (0.2ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
231680
+ SQL (0.1ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
231681
+ SQL (0.1ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
231682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
231683
+  (0.0ms) SELECT COUNT(*) FROM "notifiable_statuses"
231684
+  (0.1ms) DELETE FROM "users";
231685
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231686
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';
231687
+  (0.0ms) DELETE FROM "notifiable_apps";
231688
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231689
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_apps';
231690
+  (0.1ms) DELETE FROM "notifiable_device_tokens";
231691
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231692
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
231693
+  (0.0ms) DELETE FROM "notifiable_notifications";
231694
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231695
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
231696
+  (0.0ms) DELETE FROM "notifiable_statuses";
231697
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
231698
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
231699
+  (0.5ms) rollback transaction