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