notifiable-rails 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generators/notifiable/install/templates/create_notifiable_statuses.rb +1 -0
- data/lib/notifiable/notifier_base.rb +1 -1
- data/lib/notifiable/version.rb +1 -1
- data/spec/batch_spec.rb +1 -0
- data/spec/test_app/db/migrate/20131229104039_create_notifiable_statuses.rb +1 -0
- data/spec/test_app/db/schema.rb +4 -3
- data/spec/test_app/db/test.sqlite3 +0 -0
- data/spec/test_app/log/test.log +2733 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac1955221077e2eb721c85070c474b59d7952fed
|
4
|
+
data.tar.gz: 8e44901e4d2f65d951b2e22e5e0bedea3ed66a97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33fe7d0abb351f211c697f5a060265755dee45b029d987b0d7621c2a39c7d8471946099e6f4760715b4bcd861fdc020f077c8f1c2087b72243630e0c5d38272f
|
7
|
+
data.tar.gz: f290d6d0a398447e5d348ac36ab74c1ee2ee0fe073edeb45ba7703ad59e379009f6df2e789a77003c81d4b877f7c14c3cbf7078934053ba35676521c247c7148
|
@@ -21,7 +21,7 @@ module Notifiable
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def processed(notification, device_token, status)
|
24
|
-
receipts << {notification_id: notification.id, device_token_id: device_token.id, status: status}
|
24
|
+
receipts << {notification_id: notification.id, device_token_id: device_token.id, status: status, created_at: DateTime.now}
|
25
25
|
|
26
26
|
if receipts.count > 10000
|
27
27
|
save_receipts
|
data/lib/notifiable/version.rb
CHANGED
data/spec/batch_spec.rb
CHANGED
data/spec/test_app/db/schema.rb
CHANGED
@@ -47,9 +47,10 @@ ActiveRecord::Schema.define(version: 20131229104039) do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
create_table "notifiable_statuses", force: true do |t|
|
50
|
-
t.integer
|
51
|
-
t.integer
|
52
|
-
t.integer
|
50
|
+
t.integer "notification_id"
|
51
|
+
t.integer "device_token_id"
|
52
|
+
t.integer "status"
|
53
|
+
t.datetime "created_at"
|
53
54
|
end
|
54
55
|
|
55
56
|
create_table "users", force: true do |t|
|
Binary file
|
data/spec/test_app/log/test.log
CHANGED
@@ -228964,3 +228964,2736 @@ Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
|
228964
228964
|
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
228965
228965
|
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
228966
228966
|
[1m[35m (0.4ms)[0m rollback transaction
|
228967
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
228968
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
228969
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
228970
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
228971
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
228972
|
+
[1m[35mSQL (3.0ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00]]
|
228973
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
228974
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
228975
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
228976
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["user_id", 1]]
|
228977
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
228978
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
228979
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00]]
|
228980
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
228981
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
228982
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
228983
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
228984
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
228985
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
228986
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
228987
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
228988
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
228989
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
228990
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
228991
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
228992
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
228993
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
228994
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
228995
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
228996
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
228997
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
228998
|
+
[1m[35m (0.0ms)[0m begin transaction
|
228999
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229000
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
229001
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229002
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229003
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00]]
|
229004
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229005
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229006
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
|
229007
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Mon, 14 Apr 2014 22:26:04 UTC +00:00], ["user_id", 1]]
|
229008
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229009
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229010
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229011
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229012
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
229013
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229014
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
229015
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
229016
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229017
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
229018
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
229019
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229020
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
229021
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
229022
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229023
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
229024
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
229025
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229026
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
229027
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
229028
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229029
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229030
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
|
229031
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229032
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229033
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229034
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229035
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229036
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
|
229037
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229038
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229039
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
229040
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229041
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229042
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
229043
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229044
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229045
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229046
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229047
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229048
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229049
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229050
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229051
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229052
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229053
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229054
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229055
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229056
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229057
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229058
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
229059
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
229060
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229061
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
229062
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229063
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229064
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229065
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229066
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229067
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
229068
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229069
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229070
|
+
[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
|
229071
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229072
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229073
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229074
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
229075
|
+
Parameters: {"token"=>"ABCD4", "provider"=>"mock", "app_id"=>"2", "device_token"=>{"token"=>"ABCD4", "provider"=>"mock", "app_id"=>"2"}}
|
229076
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
229077
|
+
Unpermitted parameters: device_token
|
229078
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
229079
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229080
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
229081
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
229082
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["app_id", 2], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229083
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
229084
|
+
Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.6ms)
|
229085
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
229086
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
229087
|
+
[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
|
229088
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
229089
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229090
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229091
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229092
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229093
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229094
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229095
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229096
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229097
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229098
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
229099
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229100
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229101
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229102
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229103
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229104
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
229105
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
229106
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
229107
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-5@example.com"]]
|
229108
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229109
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229110
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229111
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229112
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229113
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
229114
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229115
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229116
|
+
[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
|
229117
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
229118
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
229119
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
229120
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
229121
|
+
Filter chain halted as :ensure_current_notifiable_user! rendered or redirected
|
229122
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.2ms)
|
229123
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'[0m
|
229124
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
229125
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229126
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
229127
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
229128
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229129
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
229130
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
229131
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229132
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
229133
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
229134
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229135
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
229136
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
229137
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229138
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
229139
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
229140
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229141
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229142
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
229143
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229144
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
229145
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-6@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
229146
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
229147
|
+
Unpermitted parameters: device_id, user_email, device_token
|
229148
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1[0m
|
229149
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
229150
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229151
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
229152
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
229153
|
+
Completed 422 Unprocessable Entity in 32ms (Views: 0.2ms | ActiveRecord: 0.4ms)
|
229154
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
229155
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM "users";[0m
|
229156
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229157
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229158
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
229159
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229160
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229161
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229162
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229163
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229164
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229165
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229166
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229167
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229168
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229169
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229170
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
229171
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
229172
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229173
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
229174
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229175
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229176
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229177
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229178
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229179
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
229180
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229181
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229182
|
+
[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
|
229183
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
229184
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-7@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
229185
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
229186
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
|
229187
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
229188
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
229189
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1[0m
|
229190
|
+
Unpermitted parameters: id, user_email, device_token
|
229191
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1
|
229192
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-7@example.com' LIMIT 1[0m
|
229193
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229194
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
229195
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
229196
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["token", "DEF456"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229197
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229198
|
+
Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.7ms)
|
229199
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
229200
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
229201
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
229202
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229203
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229204
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229205
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229206
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229207
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229208
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229209
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229210
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
229211
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229212
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229213
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229214
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229215
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229216
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
229217
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
229218
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229219
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-8@example.com"]]
|
229220
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229221
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229222
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229223
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229224
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229225
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1[0m
|
229226
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229227
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229228
|
+
[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
|
229229
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229230
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
|
229231
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229232
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
229233
|
+
Parameters: {"id"=>"1", "user_email"=>"person-9@example.com", "device_token"=>{"id"=>"1"}}
|
229234
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
229235
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1[0m
|
229236
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
229237
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
229238
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
|
229239
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
229240
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
229241
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'[0m
|
229242
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
229243
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229244
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
229245
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
229246
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229247
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
229248
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
229249
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229250
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
229251
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
229252
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229253
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
229254
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
229255
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229256
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
229257
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
229258
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229259
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229260
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
|
229261
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229262
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229263
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229264
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229265
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229266
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
|
229267
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229268
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229269
|
+
[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
|
229270
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
229271
|
+
Parameters: {"id"=>"1", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"1"}}
|
229272
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
229273
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1[0m
|
229274
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
229275
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
229276
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
|
229277
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229278
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
229279
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229280
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
|
229281
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
229282
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229283
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229284
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229285
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229286
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229287
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229288
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229289
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229290
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229291
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
229292
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229293
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229294
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229295
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229296
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229297
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
229298
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
229299
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229300
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
229301
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229302
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
229303
|
+
Parameters: {"id"=>"59", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"59"}}
|
229304
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "59"]]
|
229305
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
229306
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229307
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
229308
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229309
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229310
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229311
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229312
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229313
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
229314
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 2]]
|
229315
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229316
|
+
[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
|
229317
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'[0m
|
229318
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
229319
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229320
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
229321
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
229322
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229323
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
229324
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
229325
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229326
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
229327
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
229328
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229329
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
229330
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
229331
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229332
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
229333
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
229334
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229335
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229336
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229337
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229338
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
229339
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
229340
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
229341
|
+
Unpermitted parameters: device_token
|
229342
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
229343
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229344
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
229345
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
229346
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229347
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229348
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)
|
229349
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
229350
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
229351
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
229352
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "users"
|
229353
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229354
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229355
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229356
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229357
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229358
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229359
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229360
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229361
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229362
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229363
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229364
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229365
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229366
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229367
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229368
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
229369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
229370
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229371
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
229372
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229373
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229374
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229375
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229376
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
229377
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-13@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
229378
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
229379
|
+
Unpermitted parameters: user_email, device_token
|
229380
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1[0m
|
229381
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
|
229382
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229383
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
229384
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
229385
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229386
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229387
|
+
Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.8ms)
|
229388
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
229389
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
229390
|
+
[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
|
229391
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
229392
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
229393
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229394
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
229395
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
229396
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229397
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
229398
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
229399
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229400
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
229401
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
229402
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229403
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
229404
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
229405
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229406
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
229407
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
229408
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229409
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229410
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229411
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229412
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229413
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229414
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229415
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ?[0m [["app_id", 1]]
|
229416
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
229417
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229418
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
229419
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
229420
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229421
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
229422
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
229423
|
+
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229424
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
229425
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
229426
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229427
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
229428
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
229429
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229430
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
229431
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
229432
|
+
[1m[35m (0.1ms)[0m begin transaction
|
229433
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229434
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229435
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229436
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
229437
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229438
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229439
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229440
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229441
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229442
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229443
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229444
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
229445
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229446
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229447
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229448
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229449
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229450
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
|
229451
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229452
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229453
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
229454
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229455
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
229456
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229457
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229458
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229459
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229460
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229461
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
229462
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 2]]
|
229463
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229464
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
229465
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229466
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229467
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229468
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229469
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229470
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229471
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229472
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229473
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229474
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229475
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229476
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229477
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229478
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229479
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229480
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
229481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
229482
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229483
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229484
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229485
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
229486
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229487
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229488
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229489
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229490
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229491
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229492
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229493
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-16@example.com"]]
|
229494
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229495
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
229496
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229497
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229498
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229499
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
229500
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229501
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229502
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
229503
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
229504
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229505
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229506
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229507
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229508
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229509
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229510
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
229511
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229512
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229513
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229514
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229515
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229516
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
|
229517
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 5], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 2]]
|
229518
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229519
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
229520
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
229521
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229522
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
229523
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
229524
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229525
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
229526
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
229527
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229528
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
229529
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
229530
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229531
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
229532
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
229533
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229534
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
229535
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
229536
|
+
[1m[35m (0.1ms)[0m begin transaction
|
229537
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229538
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229539
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229540
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229541
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
229542
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229543
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229544
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229545
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229546
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229547
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
229548
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :sms], ["token", "ABCD14"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229549
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229550
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
229551
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229552
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229553
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229554
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229555
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229556
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
229557
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
229558
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
229559
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229560
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
229561
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
229562
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229563
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
229564
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
229565
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229566
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
229567
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
229568
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229569
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
229570
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
229571
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229572
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
229573
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
229574
|
+
[1m[35m (0.1ms)[0m begin transaction
|
229575
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229576
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229577
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229578
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229579
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229580
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
229581
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229582
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
229583
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229584
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229585
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229586
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229587
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229588
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
|
229589
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229590
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229591
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
229592
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
229593
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
229594
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229595
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229596
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229597
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229598
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229599
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229600
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229601
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229602
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
229603
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229604
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229605
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229606
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229607
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229608
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
229609
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
229610
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229611
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229612
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229613
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
229614
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
229615
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0[0m
|
229616
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
229617
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229618
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229619
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229620
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229621
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229622
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229623
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229624
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229625
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229626
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
229627
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229628
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229629
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229630
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229631
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229632
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
229633
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
229634
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229635
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229636
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229637
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229638
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229639
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229640
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
229641
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229642
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229643
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229644
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229645
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229646
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229647
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229648
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229649
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229650
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229651
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229652
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229653
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229654
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229655
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229656
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
229657
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
229658
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229659
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229660
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229661
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229662
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229663
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229664
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
229665
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229666
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229667
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229668
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229669
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229670
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229671
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229672
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229673
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229674
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229675
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229676
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229677
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229678
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229679
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229680
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
229681
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
229682
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229683
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229684
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229685
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229686
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229687
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229688
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229689
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("notification_id") VALUES (?)[0m [["notification_id", 1]]
|
229690
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229691
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229692
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
229693
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ?[0m [["id", 1]]
|
229694
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
|
229695
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229696
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
229697
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229698
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229699
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229700
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229701
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229702
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229703
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229704
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229705
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229706
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229707
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229708
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229709
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229710
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229711
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229712
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
229713
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
229714
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
229715
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
229716
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229717
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229718
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229719
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229720
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229721
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1[0m
|
229722
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229723
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229724
|
+
[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
|
229725
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
229726
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229727
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229728
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229729
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229730
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
229731
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229732
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
229733
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD16"}, "user_email"=>"person-21@example.com", "notification"=>{}}
|
229734
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
|
229735
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD16') LIMIT 1[0m
|
229736
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
229737
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1[0m
|
229738
|
+
[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]]
|
229739
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
229740
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229741
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
229742
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229743
|
+
[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]]
|
229744
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229745
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil]]
|
229746
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229747
|
+
Completed 200 OK in 7ms (ActiveRecord: 1.0ms)
|
229748
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
229749
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
229750
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
229751
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
229752
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
229753
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229754
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229755
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229756
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229757
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229758
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229759
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229760
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229761
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229762
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229763
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229764
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229765
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229766
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229767
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
229768
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
229769
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229770
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-22@example.com"]]
|
229771
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
229772
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229773
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229774
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229775
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229776
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1[0m
|
229777
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["user_id", 1]]
|
229778
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229779
|
+
[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
|
229780
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
229781
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229782
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:05 UTC +00:00]]
|
229783
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229784
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229785
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
229786
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229787
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
229788
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-23@example.com"]]
|
229789
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229790
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
229791
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD17"}, "user_email"=>"person-23@example.com", "notification"=>{}}
|
229792
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1[0m
|
229793
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD17') LIMIT 1
|
229794
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
229795
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
|
229796
|
+
[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", 1]]
|
229797
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
229798
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
229799
|
+
Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
|
229800
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
229801
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
229802
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
229803
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
229804
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
229805
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229806
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229807
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229808
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229809
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229810
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229811
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229812
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229813
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229814
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229815
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229816
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229817
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229818
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229819
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
229820
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
229821
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
229822
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
229823
|
+
Migrating to CreateUsers (20131210115648)
|
229824
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229825
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL) [0m
|
229826
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115648"]]
|
229827
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
229828
|
+
Migrating to CreateNotifiableApps (20131210115649)
|
229829
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229830
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "notifiable_apps" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "configuration" text, "created_at" datetime, "updated_at" datetime) [0m
|
229831
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115649"]]
|
229832
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
229833
|
+
Migrating to CreateNotifiableDeviceTokens (20131228225139)
|
229834
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229835
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "notifiable_device_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "provider" varchar(255), "device_id" varchar(255), "is_valid" boolean DEFAULT 't', "user_id" integer, "app_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
229836
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_device_id" ON "notifiable_device_tokens" ("device_id")
|
229837
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_notifiable_device_tokens_on_token" ON "notifiable_device_tokens" ("token")[0m
|
229838
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_notifiable_device_tokens_on_user_id" ON "notifiable_device_tokens" ("user_id")
|
229839
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131228225139"]]
|
229840
|
+
[1m[35m (0.8ms)[0m commit transaction
|
229841
|
+
Migrating to CreateNotifiableNotifications (20131228225140)
|
229842
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
229843
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "notifiable_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message" text, "params" text, "app_id" integer, "sent_count" integer DEFAULT 0, "gateway_accepted_count" integer DEFAULT 0, "opened_count" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
|
229844
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131228225140"]]
|
229845
|
+
[1m[35m (0.5ms)[0m commit transaction
|
229846
|
+
Migrating to CreateNotifiableStatuses (20131229104039)
|
229847
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
229848
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "notifiable_statuses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_id" integer, "device_token_id" integer, "status" integer)
|
229849
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131229104039"]]
|
229850
|
+
[1m[35m (0.6ms)[0m commit transaction
|
229851
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
229852
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
229853
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
229854
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
229855
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229856
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
229857
|
+
[1m[35mSQL (2.9ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
229858
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229859
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
229860
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
229861
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
229862
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229863
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229864
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
229865
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229866
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
229867
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
229868
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229869
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
229870
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
229871
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229872
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
229873
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
229874
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229875
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
229876
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
229877
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229878
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
229879
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
229880
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229881
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
229882
|
+
[1m[36m (6.4ms)[0m [1mrollback transaction[0m
|
229883
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229884
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229885
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
229886
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229887
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229888
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
229889
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229890
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229891
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
|
229892
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
229893
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229894
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229895
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
229896
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229897
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
229898
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229899
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
229900
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
229901
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229902
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
229903
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
229904
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229905
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
229906
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
229907
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229908
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
229909
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
229910
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229911
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
229912
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
229913
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229914
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229915
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
|
229916
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229917
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
229918
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
229919
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229920
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
229921
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
|
229922
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
229923
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229924
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229925
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
229926
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229927
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
229928
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229929
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229930
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229931
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229932
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229933
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229934
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229935
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229936
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229937
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229938
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229939
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229940
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229941
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229942
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229943
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
229944
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
229945
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229946
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
229947
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229948
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
229949
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
229950
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229951
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229952
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
229953
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
229954
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229955
|
+
[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
|
229956
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
229957
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229958
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
229959
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229960
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
229961
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
229962
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
229963
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
229964
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD4"}, "user_email"=>"person-4@example.com", "notification"=>{}}
|
229965
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
|
229966
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD4') LIMIT 1[0m
|
229967
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
229968
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1[0m
|
229969
|
+
[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]]
|
229970
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
229971
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229972
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
229973
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229974
|
+
[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]]
|
229975
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
229976
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil]]
|
229977
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
229978
|
+
Completed 200 OK in 8ms (ActiveRecord: 1.0ms)
|
229979
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
229980
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
229981
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
229982
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
229983
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
229984
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229985
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
229986
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
229987
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229988
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
229989
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
229990
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229991
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
229992
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
229993
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
229994
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
229995
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
229996
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
229997
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
229998
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
229999
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
230000
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
230001
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-5@example.com"]]
|
230002
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230003
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
230004
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230005
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230006
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230007
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
230008
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
230009
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230010
|
+
[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
|
230011
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
230012
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230013
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230014
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230015
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230016
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
230017
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230018
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230019
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-6@example.com"]]
|
230020
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230021
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
230022
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD5"}, "user_email"=>"person-6@example.com", "notification"=>{}}
|
230023
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1[0m
|
230024
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD5') LIMIT 1
|
230025
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
230026
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
230027
|
+
[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", 1]]
|
230028
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
230029
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
230030
|
+
Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
|
230031
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
230032
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
230033
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
230034
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
230035
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
230036
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230037
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
230038
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
230039
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230040
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
230041
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
230042
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230043
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
230044
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
230045
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230046
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
230047
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
230048
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230049
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
230050
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
230051
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230052
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230053
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230054
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230055
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230056
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230057
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230058
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230059
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
230060
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230061
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230062
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230063
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230064
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230065
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
230066
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
230067
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230068
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
230069
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
230070
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
230071
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230072
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230073
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230074
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230075
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230076
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
230077
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230078
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230079
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230080
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230081
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230082
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
230083
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230084
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230085
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
230086
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230087
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230088
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230089
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230090
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
230091
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL[0m
|
230092
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
|
230093
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
230094
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
230095
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230096
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230097
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230098
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230099
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230100
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
230101
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230102
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230103
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230104
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230105
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230106
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
230107
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230108
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230109
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
230110
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230111
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230112
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230113
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230114
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230115
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230116
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230117
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ?[0m [["app_id", 1]]
|
230118
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
230119
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230120
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230121
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230122
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230123
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230124
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
230125
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230126
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230127
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230128
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230129
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230130
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
230131
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230132
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230133
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
230134
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230135
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230136
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230137
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230138
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
230139
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
230140
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230141
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230142
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230143
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230144
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230145
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230146
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
|
230147
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230148
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230149
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230150
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230151
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230152
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
230153
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
230154
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230155
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
230156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230157
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
230158
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230159
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230160
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230161
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230162
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230163
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
230164
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 2]]
|
230165
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230166
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
230167
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
230168
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230169
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
230170
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
230171
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230172
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
230173
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
230174
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230175
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
230176
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
230177
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230178
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
230179
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
230180
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230181
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
230182
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
230183
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230184
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230185
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230186
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230187
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
230188
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230189
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230190
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230191
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230192
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230193
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230194
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230195
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
230196
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230197
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230198
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230199
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230200
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230201
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
230202
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
230203
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230204
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
230205
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230206
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230207
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230208
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230209
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230210
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230211
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230212
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
|
230213
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230214
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230215
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230216
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230217
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230218
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
|
230219
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 5], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 2]]
|
230220
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230221
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
230222
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
230223
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230224
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230225
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230226
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230227
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230228
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
230229
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230230
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230231
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230232
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230233
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230234
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
230235
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230236
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230237
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
230238
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230239
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230240
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230241
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230242
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230243
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
230244
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230245
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230246
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230247
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230248
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230249
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
230250
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :sms], ["token", "ABCD11"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
230251
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230252
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230253
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230254
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230255
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230256
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230257
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230258
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
230259
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
230260
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
230261
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230262
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230263
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230264
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230265
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230266
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
230267
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230268
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230269
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230270
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230271
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230272
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
230273
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230274
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230275
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
230276
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230277
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230278
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230279
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230280
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230281
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230282
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230283
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
230284
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
230285
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230286
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230287
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230288
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230289
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230290
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
230291
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230292
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230293
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230294
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230295
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230296
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
230297
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230298
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230299
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
230300
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230301
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230302
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230303
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230304
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230305
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230306
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230307
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
230308
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
230309
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230310
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230311
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230312
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230313
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230314
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
230315
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230316
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230317
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230318
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230319
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230320
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
230321
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230322
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230323
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
230324
|
+
[1m[35m (0.1ms)[0m begin transaction
|
230325
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230326
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230327
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230328
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230329
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230330
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230331
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230332
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
|
230333
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230334
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230335
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
230336
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
|
230337
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
230338
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230339
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
230340
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
230341
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230342
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230343
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230344
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230345
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230346
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
230347
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230348
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230349
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230350
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230351
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230352
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
230353
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230354
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230355
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
230356
|
+
[1m[35m (0.1ms)[0m begin transaction
|
230357
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230358
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
230359
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230360
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230361
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230362
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230363
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230364
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
230365
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
230366
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230367
|
+
[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
|
230368
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
230369
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
230370
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
230371
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
230372
|
+
Filter chain halted as :ensure_current_notifiable_user! rendered or redirected
|
230373
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
|
230374
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12'
|
230375
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
230376
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230377
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
230378
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
230379
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230380
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
230381
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
230382
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230383
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
230384
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
230385
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230386
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
230387
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
230388
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230389
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
230390
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
230391
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230393
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230394
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230395
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
230396
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
230397
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
230398
|
+
Unpermitted parameters: device_token
|
230399
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
230400
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230401
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
230402
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
230403
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230404
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230405
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms)
|
230406
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
230407
|
+
[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
|
230408
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
230409
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
230410
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
230411
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230412
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230413
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230414
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230415
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230416
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
230417
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230418
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230419
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230420
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230421
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230422
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
230423
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230424
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230425
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
230426
|
+
[1m[35m (0.1ms)[0m begin transaction
|
230427
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
230428
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
|
230429
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230430
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230431
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230432
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230433
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230434
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
|
230435
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
230436
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230437
|
+
[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
|
230438
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
230439
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-15@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
230440
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
230441
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1[0m
|
230442
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
230443
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
230444
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
|
230445
|
+
Unpermitted parameters: id, user_email, device_token
|
230446
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1[0m
|
230447
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
|
230448
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230449
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
230450
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
230451
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230452
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230453
|
+
Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.8ms)
|
230454
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
230455
|
+
[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
|
230456
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
230457
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230458
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230459
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230460
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230461
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230462
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
230463
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230464
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230465
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230466
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230467
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230468
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
230469
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230470
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230471
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
230472
|
+
[1m[35m (0.1ms)[0m begin transaction
|
230473
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
230474
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
230475
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230476
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
230477
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-16@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
230478
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
230479
|
+
Unpermitted parameters: device_id, user_email, device_token
|
230480
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1[0m
|
230481
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
|
230482
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230483
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
230484
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
230485
|
+
Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
230486
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
230487
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM "users";[0m
|
230488
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230489
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
230490
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
230491
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230492
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
230493
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
230494
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230495
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
230496
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
230497
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230498
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
230499
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
230500
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230501
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
230502
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
230503
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
230504
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230505
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-17@example.com"]]
|
230506
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
230507
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230508
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230509
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230510
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230511
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
230512
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
230513
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230514
|
+
[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
|
230515
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230516
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230517
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230518
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
230519
|
+
Parameters: {"token"=>"ABCD14", "provider"=>"mock", "app_id"=>"2", "device_token"=>{"token"=>"ABCD14", "provider"=>"mock", "app_id"=>"2"}}
|
230520
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
|
230521
|
+
Unpermitted parameters: device_token
|
230522
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
230523
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
230524
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
230525
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD14' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
230526
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["app_id", 2], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230527
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230528
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.5ms)
|
230529
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
230530
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
230531
|
+
[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
|
230532
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
230533
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
230534
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230535
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
230536
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
230537
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230538
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
230539
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
230540
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230541
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
230542
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
230543
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230544
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
230545
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
230546
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230547
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
230548
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
230549
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230550
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230551
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
230552
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230553
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230554
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230555
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230556
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230557
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1[0m
|
230558
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
230559
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230560
|
+
[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
|
230561
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
230562
|
+
Parameters: {"id"=>"1", "user_email"=>"person-18@example.com", "device_token"=>{"id"=>"1"}}
|
230563
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
230564
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
|
230565
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
230566
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
230567
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1[0m
|
230568
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230569
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ?[0m [["id", 1]]
|
230570
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
230571
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
|
230572
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
230573
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
230574
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230575
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230576
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230577
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230578
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230579
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
230580
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230581
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230582
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230583
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230584
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230585
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
230586
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230587
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230588
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
230589
|
+
[1m[35m (0.1ms)[0m begin transaction
|
230590
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230591
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
230592
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230593
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
230594
|
+
Parameters: {"id"=>"59", "user_email"=>"person-19@example.com", "device_token"=>{"id"=>"59"}}
|
230595
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
|
230596
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
230597
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230598
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
|
230599
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230600
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230601
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230602
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230603
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230604
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
|
230605
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 2]]
|
230606
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
230607
|
+
[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
|
230608
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16'
|
230609
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
230610
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230611
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
230612
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
230613
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230614
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
230615
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
230616
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230617
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
230618
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
230619
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230620
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
230621
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
230622
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230623
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
230624
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
230625
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230626
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230627
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
230628
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230629
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
230630
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00]]
|
230631
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230632
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230633
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1[0m
|
230634
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 14 Apr 2014 22:26:22 UTC +00:00], ["user_id", 1]]
|
230635
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230636
|
+
[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
|
230637
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230638
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
|
230639
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230640
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
230641
|
+
Parameters: {"id"=>"1", "user_email"=>"person-22@example.com", "device_token"=>{"id"=>"1"}}
|
230642
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
230643
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1[0m
|
230644
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
230645
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
230646
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
|
230647
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
230648
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
|
230649
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17'[0m
|
230650
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
230651
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230652
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
230653
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
230654
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230655
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
230656
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
230657
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230658
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
230659
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
230660
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230661
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
230662
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
230663
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230664
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
230665
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
230666
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230667
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230668
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
|
230669
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230670
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230671
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:26:23 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:26:23 UTC +00:00]]
|
230672
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230673
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
230674
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-23@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
230675
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
230676
|
+
Unpermitted parameters: user_email, device_token
|
230677
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
|
230678
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1[0m
|
230679
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230680
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
230681
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
230682
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:26:23 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:26:23 UTC +00:00], ["user_id", 1]]
|
230683
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230684
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)
|
230685
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
230686
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
230687
|
+
[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
|
230688
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
230689
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
230690
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230691
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
230692
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
230693
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230694
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
230695
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
230696
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230697
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
230698
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
230699
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230700
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
230701
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
230702
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230703
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
230704
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
230705
|
+
[1m[36m (6.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
230706
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
230707
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
230708
|
+
Migrating to CreateUsers (20131210115648)
|
230709
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230710
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL) [0m
|
230711
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115648"]]
|
230712
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
230713
|
+
Migrating to CreateNotifiableApps (20131210115649)
|
230714
|
+
[1m[35m (0.1ms)[0m begin transaction
|
230715
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "notifiable_apps" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "configuration" text, "created_at" datetime, "updated_at" datetime) [0m
|
230716
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115649"]]
|
230717
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
230718
|
+
Migrating to CreateNotifiableDeviceTokens (20131228225139)
|
230719
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230720
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "notifiable_device_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "provider" varchar(255), "device_id" varchar(255), "is_valid" boolean DEFAULT 't', "user_id" integer, "app_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
230721
|
+
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_device_id" ON "notifiable_device_tokens" ("device_id")
|
230722
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_notifiable_device_tokens_on_token" ON "notifiable_device_tokens" ("token")[0m
|
230723
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_notifiable_device_tokens_on_user_id" ON "notifiable_device_tokens" ("user_id")
|
230724
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131228225139"]]
|
230725
|
+
[1m[35m (0.7ms)[0m commit transaction
|
230726
|
+
Migrating to CreateNotifiableNotifications (20131228225140)
|
230727
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230728
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "notifiable_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message" text, "params" text, "app_id" integer, "sent_count" integer DEFAULT 0, "gateway_accepted_count" integer DEFAULT 0, "opened_count" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
|
230729
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131228225140"]]
|
230730
|
+
[1m[35m (0.6ms)[0m commit transaction
|
230731
|
+
Migrating to CreateNotifiableStatuses (20131229104039)
|
230732
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230733
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "notifiable_statuses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_id" integer, "device_token_id" integer, "status" integer)
|
230734
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131229104039"]]
|
230735
|
+
[1m[35m (0.8ms)[0m commit transaction
|
230736
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
230737
|
+
[1m[36m (6.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
230738
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
230739
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
230740
|
+
Migrating to CreateUsers (20131210115648)
|
230741
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230742
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL) [0m
|
230743
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115648"]]
|
230744
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
230745
|
+
Migrating to CreateNotifiableApps (20131210115649)
|
230746
|
+
[1m[35m (0.1ms)[0m begin transaction
|
230747
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "notifiable_apps" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "configuration" text, "created_at" datetime, "updated_at" datetime) [0m
|
230748
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115649"]]
|
230749
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
230750
|
+
Migrating to CreateNotifiableDeviceTokens (20131228225139)
|
230751
|
+
[1m[35m (0.0ms)[0m begin transaction
|
230752
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "notifiable_device_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "provider" varchar(255), "device_id" varchar(255), "is_valid" boolean DEFAULT 't', "user_id" integer, "app_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
230753
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_device_id" ON "notifiable_device_tokens" ("device_id")
|
230754
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_notifiable_device_tokens_on_token" ON "notifiable_device_tokens" ("token")[0m
|
230755
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_notifiable_device_tokens_on_user_id" ON "notifiable_device_tokens" ("user_id")
|
230756
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131228225139"]]
|
230757
|
+
[1m[35m (0.6ms)[0m commit transaction
|
230758
|
+
Migrating to CreateNotifiableNotifications (20131228225140)
|
230759
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230760
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "notifiable_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message" text, "params" text, "app_id" integer, "sent_count" integer DEFAULT 0, "gateway_accepted_count" integer DEFAULT 0, "opened_count" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)
|
230761
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131228225140"]]
|
230762
|
+
[1m[35m (0.6ms)[0m commit transaction
|
230763
|
+
Migrating to CreateNotifiableStatuses (20131229104039)
|
230764
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230765
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "notifiable_statuses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_id" integer, "device_token_id" integer, "status" integer, "created_at" datetime)
|
230766
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131229104039"]]
|
230767
|
+
[1m[35m (0.6ms)[0m commit transaction
|
230768
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
230769
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
230770
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
230771
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
230772
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230773
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230774
|
+
[1m[35mSQL (3.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230775
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230776
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230777
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
230778
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
230779
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230780
|
+
[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
|
230781
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
230782
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230783
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230784
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230785
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230786
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
230787
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230788
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
230789
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD1"}, "user_email"=>"person-1@example.com", "notification"=>{}}
|
230790
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
|
230791
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD1') LIMIT 1[0m
|
230792
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
230793
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1[0m
|
230794
|
+
[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]]
|
230795
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
230796
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230797
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
230798
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230799
|
+
[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]]
|
230800
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230801
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
|
230802
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230803
|
+
Completed 200 OK in 8ms (ActiveRecord: 0.9ms)
|
230804
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
230805
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
230806
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
230807
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
230808
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
230809
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230810
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
230811
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
230812
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230813
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
230814
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
230815
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230816
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
230817
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
230818
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230819
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
230820
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
230821
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230822
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
230823
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
230824
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230825
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230826
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-2@example.com"]]
|
230827
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230828
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230829
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230830
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230831
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230832
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
230833
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
230834
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230835
|
+
[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
|
230836
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
230837
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
230838
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230839
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230840
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230841
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
230842
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230843
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
230844
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
230845
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230846
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
230847
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD2"}, "user_email"=>"person-3@example.com", "notification"=>{}}
|
230848
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1[0m
|
230849
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD2') LIMIT 1
|
230850
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
230851
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-3@example.com' LIMIT 1
|
230852
|
+
[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", 1]]
|
230853
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
230854
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
230855
|
+
Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
|
230856
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
230857
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
230858
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
230859
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
230860
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
230861
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230862
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
230863
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
230864
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230865
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
230866
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
230867
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230868
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
230869
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
230870
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230871
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
230872
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
230873
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230874
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
230875
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
230876
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
230877
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230878
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230879
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230880
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
230881
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230882
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230883
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230884
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230885
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230886
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230887
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230888
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
230889
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230890
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230891
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230892
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230893
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230894
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
230895
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
230896
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230897
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
230898
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230899
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230900
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230901
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230902
|
+
[1m[36mSQL (23.5ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230903
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
230904
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230905
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
230906
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230907
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230908
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230909
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230910
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230911
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
230912
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 5], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 2]]
|
230913
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230914
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
230915
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230916
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
230917
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230918
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230919
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
230920
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230921
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
|
230922
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
230923
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
230924
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230925
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
230926
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
|
230927
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230928
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 2]]
|
230929
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
|
230930
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230931
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 4]]
|
230932
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2[0m [["sent_count", 1], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
|
230933
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230934
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
230935
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
230936
|
+
[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]]
|
230937
|
+
[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]]
|
230938
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
230939
|
+
[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]]
|
230940
|
+
[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]]
|
230941
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
230942
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
230943
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230944
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
230945
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
230946
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230947
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
230948
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
230949
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230950
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
230951
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
230952
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
230953
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
230954
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
230955
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
230956
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
230957
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
230958
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
230959
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230960
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230961
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
230962
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
230963
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230964
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230965
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230966
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
230967
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230968
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230969
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230970
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-6@example.com"]]
|
230971
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230972
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230973
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230974
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230975
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230976
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
230977
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
230978
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230979
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
230980
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
230981
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-7@example.com"]]
|
230982
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230983
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230984
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
230985
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230986
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230987
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
|
230988
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 2]]
|
230989
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230990
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
230991
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
230992
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
230993
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
230994
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
230995
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
230996
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230997
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
|
230998
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
230999
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
231000
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231001
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
231002
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 2], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
|
231003
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231004
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
231005
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
231006
|
+
[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]]
|
231007
|
+
[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]]
|
231008
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
231009
|
+
[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]]
|
231010
|
+
[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]]
|
231011
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
231012
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
231013
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231014
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231015
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231016
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231017
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231018
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231019
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231020
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231021
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231022
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231023
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231024
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231025
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231026
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231027
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231028
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231029
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231030
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231031
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231032
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231033
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
231034
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231035
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231036
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231037
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231038
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231039
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
231040
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :sms], ["token", "ABCD7"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231041
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231042
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231043
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231044
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231045
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231046
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231047
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231048
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
231049
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
231050
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
231051
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231052
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231053
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231054
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231055
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231056
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231057
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231058
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231059
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231060
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231061
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231062
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231063
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231064
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231065
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231066
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
231067
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231068
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231069
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231070
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231071
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231072
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231073
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
231074
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
231075
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231076
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231077
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231078
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231079
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231080
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231081
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231082
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231083
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231084
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231085
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231086
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231087
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231088
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231089
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
231090
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
231091
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231092
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
231093
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231094
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
231095
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231096
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231097
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231098
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
231099
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD8"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231100
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231101
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231102
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231103
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231104
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231105
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
231106
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231107
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
231108
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
231109
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
231110
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231111
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
231112
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
|
231113
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231114
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
231115
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
231116
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
231117
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231118
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231119
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231120
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231121
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231122
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231123
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231124
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231125
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231126
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231127
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231128
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231129
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231130
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231131
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231132
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
231133
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
231134
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
231135
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231136
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231137
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231138
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231139
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
231140
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
231141
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD9"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231142
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231143
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
231144
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231145
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231146
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
231147
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231148
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
231149
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231150
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
231151
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
231152
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
231153
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
231154
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
231155
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil]]
|
231156
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231157
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
231158
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
231159
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
231160
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
231161
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231162
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231163
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231164
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231165
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231166
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231167
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231168
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231169
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
231170
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231171
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231172
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231173
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231174
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231175
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231176
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231177
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231178
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
231179
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231180
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231181
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231182
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231183
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
231184
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
231185
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD10"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231186
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231187
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231188
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231189
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231190
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
231191
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
231192
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231193
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
231194
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
231195
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231196
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
231197
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
231198
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231199
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
231200
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
231201
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231202
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
231203
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
231204
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231205
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
231206
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
231207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
231208
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231209
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
|
231210
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231211
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
231212
|
+
Parameters: {"id"=>"59", "user_email"=>"person-12@example.com", "device_token"=>{"id"=>"59"}}
|
231213
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "59"]]
|
231214
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
231215
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
231216
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
|
231217
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231218
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231219
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231220
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231221
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231222
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
|
231223
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 2]]
|
231224
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231225
|
+
[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
|
231226
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'
|
231227
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
231228
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231229
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231230
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231231
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231232
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231233
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231234
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231235
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231236
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
231237
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231238
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231239
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231240
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231241
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231242
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231243
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231244
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231245
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-14@example.com"]]
|
231246
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231247
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231248
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231249
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231250
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231251
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
231252
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231253
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231254
|
+
[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
|
231255
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231256
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231257
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231258
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
231259
|
+
Parameters: {"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2", "device_token"=>{"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2"}}
|
231260
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
231261
|
+
Unpermitted parameters: device_token
|
231262
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
231263
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231264
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
231265
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD12' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
231266
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["app_id", 2], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231267
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231268
|
+
Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.5ms)
|
231269
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
231270
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
231271
|
+
[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
|
231272
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
231273
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
231274
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231275
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231276
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231277
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231278
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231279
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231280
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231281
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231282
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
231283
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231284
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231285
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231286
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231287
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231288
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231289
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
231290
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
231291
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
231292
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231293
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
231294
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-15@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
231295
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
231296
|
+
Unpermitted parameters: device_id, user_email, device_token
|
231297
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
|
231298
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1[0m
|
231299
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231300
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
231301
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
231302
|
+
Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
231303
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
231304
|
+
[1m[35m (0.3ms)[0m DELETE FROM "users";
|
231305
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231306
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
231307
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
231308
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231309
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
231310
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
231311
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231312
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
231313
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
231314
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231315
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
231316
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
231317
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231318
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
231319
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
231320
|
+
[1m[35m (0.0ms)[0m begin transaction
|
231321
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231322
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
231323
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231324
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231325
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231326
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231327
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231328
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
|
231329
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231330
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231331
|
+
[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
|
231332
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231333
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-17@example.com"]]
|
231334
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
231335
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
231336
|
+
Parameters: {"id"=>"1", "user_email"=>"person-17@example.com", "device_token"=>{"id"=>"1"}}
|
231337
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
231338
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1
|
231339
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
231340
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
231341
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-17@example.com' LIMIT 1[0m
|
231342
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
231343
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
231344
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13'
|
231345
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
231346
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231347
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231348
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231349
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231350
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231351
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231352
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231353
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231354
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231355
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231356
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231357
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231358
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231359
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231360
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231361
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
231362
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231363
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
231364
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231365
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231366
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231367
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231368
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
231369
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-18@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
231370
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
231371
|
+
Unpermitted parameters: user_email, device_token
|
231372
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1[0m
|
231373
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
|
231374
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231375
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
231376
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
231377
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231378
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231379
|
+
Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.6ms)
|
231380
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
231381
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
231382
|
+
[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
|
231383
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
231384
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
231385
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231386
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
231387
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
231388
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231389
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
231390
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
231391
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231392
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
231393
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
231394
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231395
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
231396
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
231397
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231398
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
231399
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
231400
|
+
[1m[35m (0.1ms)[0m begin transaction
|
231401
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
231402
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
231403
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231404
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231405
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231406
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231407
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231408
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
|
231409
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231410
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231411
|
+
[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
|
231412
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
231413
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-19@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
231414
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
231415
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1[0m
|
231416
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
231417
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
231418
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
|
231419
|
+
Unpermitted parameters: id, user_email, device_token
|
231420
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1[0m
|
231421
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
|
231422
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231423
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
231424
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
231425
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231426
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231427
|
+
Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
231428
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
231429
|
+
[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
|
231430
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
231431
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231432
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
231433
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
231434
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231435
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
231436
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
231437
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231438
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
231439
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
231440
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231441
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
231442
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
231443
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231444
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
231445
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
231446
|
+
[1m[35m (0.0ms)[0m begin transaction
|
231447
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231448
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231449
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231450
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
231451
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
231452
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
231453
|
+
Unpermitted parameters: device_token
|
231454
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
231455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231456
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
231457
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
231458
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231459
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231460
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
231461
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
231462
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
231463
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
231464
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "users"
|
231465
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
231466
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231467
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231468
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231469
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231470
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231471
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231472
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231473
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231474
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231475
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231476
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231477
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231478
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231479
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231480
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231481
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231482
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
231483
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-20@example.com"]]
|
231484
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231485
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231486
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231487
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231488
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231489
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1[0m
|
231490
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231491
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231492
|
+
[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
|
231493
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
231494
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
231495
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
231496
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
231497
|
+
Filter chain halted as :ensure_current_notifiable_user! rendered or redirected
|
231498
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
|
231499
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15'[0m
|
231500
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
231501
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231502
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
231503
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
231504
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231505
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
231506
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
231507
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231508
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
231509
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
231510
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231511
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
231512
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
231513
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231514
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
231515
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
231516
|
+
[1m[35m (0.1ms)[0m begin transaction
|
231517
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
231518
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
|
231519
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231520
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231521
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231522
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231523
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231524
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
|
231525
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231526
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
231527
|
+
[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
|
231528
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
231529
|
+
Parameters: {"id"=>"1", "user_email"=>"person-21@example.com", "device_token"=>{"id"=>"1"}}
|
231530
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
231531
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1[0m
|
231532
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
231533
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
231534
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
|
231535
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231536
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
231537
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231538
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
|
231539
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
231540
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
231541
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231542
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231543
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231544
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231545
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231546
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231547
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231548
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231549
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231550
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231551
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231552
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231553
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231554
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231555
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231556
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231557
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231558
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231559
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231560
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231561
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231562
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231563
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231564
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-22@example.com"]]
|
231565
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231566
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231567
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231568
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231569
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231570
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1[0m
|
231571
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["user_id", 1]]
|
231572
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231573
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
231574
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
231575
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231576
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?)[0m [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["device_token_id", 1], ["status", 200]]
|
231577
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
231578
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL[0m
|
231579
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
231580
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
231581
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231582
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231583
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231584
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231585
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231586
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231587
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231588
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231589
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231590
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231591
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231592
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231593
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231594
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231595
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231596
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231597
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231598
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231599
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231600
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
231601
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
231602
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0[0m
|
231603
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
231604
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
231605
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231606
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231607
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231608
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231609
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231610
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231611
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231612
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231613
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231614
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231615
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231616
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231617
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231618
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231619
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
231620
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231621
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231622
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231623
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231624
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231625
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231626
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231627
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
231628
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
231629
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231630
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231631
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231632
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231633
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231634
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231635
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231636
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231637
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231638
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231639
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231640
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231641
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231642
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231643
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
231644
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231645
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231646
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231647
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231648
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231649
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231650
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231651
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
231652
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
231653
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231654
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231655
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231656
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231657
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231658
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231659
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231660
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231661
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231662
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231663
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231664
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231665
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231666
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231667
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
231668
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231669
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231670
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231671
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231672
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231673
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00]]
|
231674
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231675
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231676
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?)[0m [["created_at", Mon, 14 Apr 2014 22:31:17 UTC +00:00], ["notification_id", 1]]
|
231677
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
231678
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231679
|
+
[1m[35mNotifiable::NotificationStatus Load (0.2ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
231680
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ?[0m [["id", 1]]
|
231681
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
|
231682
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231683
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
231684
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
231685
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231686
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
231687
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
231688
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231689
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
231690
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
231691
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231692
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
231693
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
231694
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
231695
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
231696
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
231697
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
231698
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
231699
|
+
[1m[35m (0.5ms)[0m rollback transaction
|