notifiable-rails 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76fa27670944f4fff809ba0057246fd52538b132
|
4
|
+
data.tar.gz: 0d2888b78b81963993db60538c6c276794413195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9b86d1b8a6faeee38a71482a8cbfb67f537f2c6e00a312b93c511e0eb4dd9658a8550bf5c1cfb478d61f91c8f5b93d6b5203b237439b0c050dbbe3ee735f607
|
7
|
+
data.tar.gz: 3298e4797a9d52e9763302f0e330b8e9afa2f400728608e746d3c872814c730f01de65933a3acb1339c7304e1164b04a5d67d9a2f5a71c9d8eee5388e5a72776
|
@@ -24,7 +24,7 @@ module Notifiable
|
|
24
24
|
migration_template "create_notifiable_apps.rb", "db/migrate/create_notifiable_apps.rb"
|
25
25
|
migration_template "create_notifiable_device_tokens.rb", "db/migrate/create_notifiable_device_tokens.rb"
|
26
26
|
migration_template "create_notifiable_notifications.rb", "db/migrate/create_notifiable_notifications.rb"
|
27
|
-
migration_template "
|
27
|
+
migration_template "create_notifiable_notification_statuses.rb", "db/migrate/create_notifiable_notification_statuses.rb"
|
28
28
|
end
|
29
29
|
|
30
30
|
desc "Add initializer"
|
@@ -8,17 +8,18 @@ class ActiveRecord::Base
|
|
8
8
|
when :mysql
|
9
9
|
raise NotImplementedError, "Not implemented type '#{adapter_type}'"
|
10
10
|
when :sqlite
|
11
|
-
|
11
|
+
sqlite_bulk_insert(record_list)
|
12
12
|
when :postgresql
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
postgresql_bulk_insert(record_list)
|
14
|
+
when :oracle_enhanced
|
15
|
+
oracle_bulk_insert(record_list)
|
16
16
|
else
|
17
17
|
raise NotImplementedError, "Unknown adapter type '#{adapter_type}'"
|
18
18
|
end
|
19
19
|
|
20
20
|
end
|
21
|
-
|
21
|
+
|
22
|
+
protected
|
22
23
|
def self.convert_record_list(record_list)
|
23
24
|
key_list = record_list.map(&:keys).flatten.uniq.sort
|
24
25
|
|
@@ -30,4 +31,21 @@ class ActiveRecord::Base
|
|
30
31
|
|
31
32
|
return [key_list, value_list]
|
32
33
|
end
|
34
|
+
|
35
|
+
def self.sqlite_bulk_insert(record_list)
|
36
|
+
self.create record_list
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.postgresql_bulk_insert(record_list)
|
40
|
+
key_list, value_list = convert_record_list(record_list)
|
41
|
+
sql = "INSERT INTO #{self.table_name} (#{key_list.join(", ")}) VALUES #{value_list.map {|rec| "(#{rec.join(", ")})" }.join(" ,")}"
|
42
|
+
self.connection.insert_sql(sql)
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.oracle_bulk_insert(record_list)
|
46
|
+
key_list, value_list = convert_record_list(record_list)
|
47
|
+
sql = "INSERT INTO #{self.table_name} (#{key_list.join(", ")}) VALUES (bind variables #{value_list.map {|rec| "(#{rec.join(", ")})" }.join(" ,")})"
|
48
|
+
self.connection.insert_sql(sql)
|
49
|
+
end
|
50
|
+
|
33
51
|
end
|
data/lib/notifiable/version.rb
CHANGED
data/spec/test_app/log/test.log
CHANGED
@@ -209924,3 +209924,924 @@ Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
|
209924
209924
|
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209925
209925
|
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
209926
209926
|
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
209927
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
209928
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209929
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
209930
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209931
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209932
|
+
[1m[35mSQL (4.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
209933
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209934
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
209935
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-1@example.com", "provider"=>"mpns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456", "app_id"=>"1"}}
|
209936
|
+
[1m[35mNotifiable::DeviceToken Load (0.7ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
|
209937
|
+
Unpermitted parameters: user_email, device_token
|
209938
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1[0m
|
209939
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-1@example.com' LIMIT 1
|
209940
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209941
|
+
[1m[35mNotifiable::App Load (0.2ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
209942
|
+
[1m[36mNotifiable::DeviceToken Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
209943
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["device_id", "DEF456"], ["provider", "mpns"], ["token", "ABC123"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
209944
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209945
|
+
Completed 200 OK in 41ms (ActiveRecord: 2.4ms)
|
209946
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
209947
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
209948
|
+
[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
|
209949
|
+
[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]]
|
209950
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
209951
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209952
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
209953
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
209954
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209955
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
209956
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
209957
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209958
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
209959
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
209960
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209961
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
209962
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
209963
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209964
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
209965
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
209966
|
+
[1m[35m (0.0ms)[0m begin transaction
|
209967
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209968
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
209969
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
209970
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209971
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
209972
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209973
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
209974
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-2@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
209975
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
209976
|
+
Unpermitted parameters: user_email, device_token
|
209977
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1
|
209978
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-2@example.com' LIMIT 1[0m
|
209979
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
209980
|
+
[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]]
|
209981
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
209982
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
209983
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
209984
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
209985
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
209986
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
209987
|
+
[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
|
209988
|
+
[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]]
|
209989
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
209990
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209991
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
209992
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
209993
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
209994
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
209995
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
209996
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
209997
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
209998
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
209999
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210000
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
210001
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
210002
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210003
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
210004
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
210005
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
210006
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210007
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
210008
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210009
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210010
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210011
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210012
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210013
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
210014
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210015
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210016
|
+
[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
|
210017
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210018
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
|
210019
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210020
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
210021
|
+
Parameters: {"token"=>"ABCD1", "user_email"=>"person-4@example.com", "device_token"=>{"token"=>"ABCD1"}}
|
210022
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
|
210023
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
210024
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
210025
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1[0m
|
210026
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms)
|
210027
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1'
|
210028
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
210029
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210030
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
210031
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
210032
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210033
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
210034
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
210035
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210036
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
210037
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
210038
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210039
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
210040
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
210041
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210042
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
210043
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
210044
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
210045
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210046
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210047
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210048
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210049
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
|
210050
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "device_id", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["device_id", "DEF456"], ["provider", :mpns], ["token", "ABCD2"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210051
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210052
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210053
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
210054
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210055
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
210056
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-5@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
210057
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
|
210058
|
+
Unpermitted parameters: user_email, device_token
|
210059
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1[0m
|
210060
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-5@example.com' LIMIT 1
|
210061
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210062
|
+
[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]]
|
210063
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABC123' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
210064
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "ABC123"], ["user_id", 1], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210065
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210066
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
210067
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
210068
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
210069
|
+
[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
|
210070
|
+
[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]]
|
210071
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210072
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210073
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
210074
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
210075
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210076
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
210077
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
210078
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210079
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
210080
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
210081
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210082
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
210083
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
210084
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210085
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
210086
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
210087
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210088
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
210089
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
210090
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
210091
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210092
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-6@example.com"]]
|
210093
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210094
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210095
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210096
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210097
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210098
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
210099
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210100
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210101
|
+
[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
|
210102
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
210103
|
+
Parameters: {"token"=>"ABCD3", "user_email"=>"person-6@example.com", "device_token"=>{"token"=>"ABCD3"}}
|
210104
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1[0m
|
210105
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
210106
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
210107
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
210108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210109
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
210110
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210111
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.6ms)
|
210112
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3'
|
210113
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
210114
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210115
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
210116
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
210117
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210118
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
210119
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
210120
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210121
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
210122
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
210123
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210124
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
210125
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
210126
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210127
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
210128
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
210129
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
210130
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210131
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
210132
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
210133
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210134
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210135
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210136
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210137
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
210138
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210139
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210140
|
+
[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
|
210141
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
210142
|
+
Parameters: {"token"=>"ABCD4", "device_token"=>{"token"=>"ABCD4"}}
|
210143
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
210144
|
+
Filter chain halted as :ensure_current_notifiable_user rendered or redirected
|
210145
|
+
Completed 406 Not Acceptable in 1ms (ActiveRecord: 0.1ms)
|
210146
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4'
|
210147
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
210148
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210149
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
210150
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
210151
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210152
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
210153
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
210154
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210155
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
210156
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
210157
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210158
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
210159
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
210160
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210161
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
210162
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
210163
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
210164
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210165
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210166
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210167
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
210168
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
210169
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
210170
|
+
Unpermitted parameters: device_token
|
210171
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
210172
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210173
|
+
[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]]
|
210174
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
210175
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210176
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210177
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.7ms)
|
210178
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
210179
|
+
[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
|
210180
|
+
[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]]
|
210181
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
210182
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
210183
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210184
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210185
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210186
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210187
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210188
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
210189
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210190
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210191
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210192
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210193
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210194
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210195
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210196
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210197
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
210198
|
+
[1m[35m (0.1ms)[0m begin transaction
|
210199
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
210200
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
210201
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210202
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
210203
|
+
Parameters: {"token"=>"ABC123", "device_id"=>"DEF456", "user_email"=>"person-8@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns", "device_id"=>"DEF456"}}
|
210204
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."device_id" = 'DEF456' LIMIT 1
|
210205
|
+
Unpermitted parameters: user_email, device_token
|
210206
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1[0m
|
210207
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-8@example.com' LIMIT 1
|
210208
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
210209
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
210210
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
210211
|
+
Completed 422 Unprocessable Entity in 35ms (Views: 0.2ms | ActiveRecord: 0.5ms)
|
210212
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
210213
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM "users";[0m
|
210214
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210215
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
210216
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
210217
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210218
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
210219
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
210220
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210221
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
210222
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
210223
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210224
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
210225
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
210226
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210227
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
210228
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
210229
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
210230
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210231
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
210232
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210233
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
210234
|
+
Parameters: {"token"=>"ZXY987", "user_email"=>"person-9@example.com", "device_token"=>{"token"=>"ZXY987"}}
|
210235
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1[0m
|
210236
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ZXY987' ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
210237
|
+
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
210238
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210239
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
|
210240
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210242
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210243
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210244
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210245
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
|
210246
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 2]]
|
210247
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210248
|
+
[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
|
210249
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'
|
210250
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
210251
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210252
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
210253
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
210254
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210255
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
210256
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
210257
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210258
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
210259
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
210260
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210261
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
210262
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notification_statuses";[0m
|
210263
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210264
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';[0m
|
210265
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
210266
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
210267
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210268
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
210269
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210270
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210271
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210272
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210273
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210274
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
210275
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD6"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210276
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210277
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210278
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210279
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210280
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
210281
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
210282
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210283
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210284
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210285
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210286
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210287
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
210288
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210289
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210290
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210291
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210292
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210293
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210294
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210295
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210296
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
210297
|
+
[1m[35m (0.0ms)[0m begin transaction
|
210298
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210299
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-12@example.com"]]
|
210300
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210301
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210302
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210303
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210304
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210305
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
210306
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD7"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210307
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210308
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210309
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210310
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210311
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210312
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
210313
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210314
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
210315
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
|
210316
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0[0m [["notification_id", 1]]
|
210317
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210318
|
+
[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]]
|
210319
|
+
[1m[35mSQL (0.2ms)[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil]]
|
210320
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210321
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
210322
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
210323
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
210324
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210325
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210326
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210327
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210328
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210329
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
210330
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210331
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210332
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210333
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210334
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210335
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210336
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210337
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210338
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
210339
|
+
[1m[35m (0.1ms)[0m begin transaction
|
210340
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210341
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
|
210342
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210343
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210344
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210345
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210346
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210347
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1
|
210348
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD8"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210349
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210350
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
210351
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210352
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210353
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
210354
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210355
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
210356
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210357
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
210358
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
210359
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0 [["notification_id", 1]]
|
210360
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210361
|
+
[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]]
|
210362
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil]]
|
210363
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210364
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
210365
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
210366
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1[0m
|
210367
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
210368
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210369
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210370
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210371
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210372
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210373
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
210374
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210375
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210376
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210377
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210378
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210379
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210380
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210381
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210382
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
210383
|
+
[1m[35m (0.0ms)[0m begin transaction
|
210384
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210385
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210386
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210387
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210388
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210389
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210390
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ?[0m [["app_id", 1]]
|
210391
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
210392
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210393
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210394
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210395
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210396
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210397
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
210398
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210399
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210400
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210401
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210402
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210403
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210404
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210405
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210406
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
210407
|
+
[1m[35m (0.0ms)[0m begin transaction
|
210408
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210409
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
210410
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210411
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210412
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210413
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210414
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210415
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
|
210416
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210417
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210418
|
+
[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
|
210419
|
+
[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]]
|
210420
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210421
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210422
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210423
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210424
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
210425
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210426
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
210427
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD9"}, "user_email"=>"person-14@example.com", "notification"=>{}}
|
210428
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1[0m
|
210429
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD9') LIMIT 1
|
210430
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1[0m
|
210431
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
210432
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[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]]
|
210433
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
210434
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210435
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notification_statuses" SET "status" = ? WHERE "notifiable_notification_statuses"."id" = 1 [["status", -1]]
|
210436
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210437
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
210438
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210439
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil]]
|
210440
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210441
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
210442
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
210443
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1[0m
|
210444
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
210445
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
210446
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
210447
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210448
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210449
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210450
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210451
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210452
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
210453
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210454
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210455
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210456
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210457
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210458
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210459
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210460
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210461
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
210462
|
+
[1m[35m (0.1ms)[0m begin transaction
|
210463
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210464
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
|
210465
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210466
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210467
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210468
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210469
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210470
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1
|
210471
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210472
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210473
|
+
[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
|
210474
|
+
[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]]
|
210475
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210476
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210477
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210478
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210479
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
210480
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210481
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210482
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
210483
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210484
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
210485
|
+
Parameters: {"notification_id"=>"1", "device_token"=>{"token"=>"ABCD10"}, "user_email"=>"person-16@example.com", "notification"=>{}}
|
210486
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1
|
210487
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE (token = 'ABCD10') LIMIT 1[0m
|
210488
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE (notification_id = '1' AND device_token_id = 1) LIMIT 1
|
210489
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1[0m
|
210490
|
+
[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]]
|
210491
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
210492
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
210493
|
+
Completed 406 Not Acceptable in 3ms (ActiveRecord: 0.4ms)
|
210494
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
210495
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" ORDER BY "notifiable_notification_statuses"."id" ASC LIMIT 1[0m
|
210496
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
210497
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
210498
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
210499
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210500
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210501
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210502
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210503
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210504
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
210505
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210506
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210507
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210508
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210509
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210510
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210511
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210512
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210513
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
210514
|
+
[1m[35m (0.1ms)[0m begin transaction
|
210515
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
210516
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210517
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210518
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210519
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210520
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210521
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210522
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("notification_id") VALUES (?) [["notification_id", 1]]
|
210523
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210524
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210525
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
210526
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."id" = ? [["id", 1]]
|
210527
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
210528
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
210529
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
210530
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
210531
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210532
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210533
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210534
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210535
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210536
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
210537
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210538
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210539
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210540
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210541
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210542
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210543
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210544
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210545
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
210546
|
+
[1m[35m (0.1ms)[0m begin transaction
|
210547
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
210548
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210549
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210550
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210551
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210552
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210553
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
210554
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
210555
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210556
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210557
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210558
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210559
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210560
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
210561
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210562
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210563
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210564
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210565
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210566
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210567
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210568
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210569
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
210570
|
+
[1m[35m (0.1ms)[0m begin transaction
|
210571
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210572
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210573
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210574
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210575
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210576
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210577
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
210578
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
210579
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210580
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210581
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210582
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210583
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210584
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
210585
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210586
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210587
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210588
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210589
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210590
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210591
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210592
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210593
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
210594
|
+
[1m[35m (0.0ms)[0m begin transaction
|
210595
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210596
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210597
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210598
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210599
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-17@example.com"]]
|
210600
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210601
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210602
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210603
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210604
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210605
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
210606
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :sms], ["token", "ABCD11"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210607
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210608
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210609
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210610
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210611
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210612
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210613
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210614
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
210615
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
210616
|
+
[1m[35m (0.2ms)[0m DELETE FROM "users";
|
210617
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210618
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210619
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210620
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210621
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210622
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
210623
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210624
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210625
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210626
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210627
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210628
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210629
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210630
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210631
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
210632
|
+
[1m[35m (0.0ms)[0m begin transaction
|
210633
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210634
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210635
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210636
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
210637
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210638
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210639
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210640
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210641
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210642
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210643
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210644
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
|
210645
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210646
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210647
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210648
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210649
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210650
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
210651
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210652
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210653
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
210654
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
210655
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210656
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210657
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210658
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210659
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210660
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210661
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-19@example.com"]]
|
210662
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210663
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
210664
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210665
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210666
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210667
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
210668
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 2]]
|
210669
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210670
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
210671
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
210672
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
210673
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210674
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210675
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
210676
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
210677
|
+
[1m[36mNotifiable::Notification Load (0.2ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)[0m
|
210678
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
|
210679
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0[0m [["notification_id", 1]]
|
210680
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210681
|
+
[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]]
|
210682
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil]]
|
210683
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210684
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 2]]
|
210685
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0[0m [["notification_id", 2]]
|
210686
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210687
|
+
[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", 4]]
|
210688
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil]]
|
210689
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210690
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
210691
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"[0m
|
210692
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
210693
|
+
[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]]
|
210694
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
210695
|
+
[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", 2]]
|
210696
|
+
[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", 2]]
|
210697
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
210698
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
210699
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210700
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210701
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210702
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210703
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210704
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
210705
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210706
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210707
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210708
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210709
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210710
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210711
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210712
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210713
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
210714
|
+
[1m[35m (0.1ms)[0m begin transaction
|
210715
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210716
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210717
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210718
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
210719
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210720
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210721
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210722
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210723
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210724
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210725
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210726
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
|
210727
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210728
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210729
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210730
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
210731
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210732
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
|
210733
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210734
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210735
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
210736
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210737
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
210738
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
210739
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
210740
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210741
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210742
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210743
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1[0m
|
210744
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 2]]
|
210745
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210746
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
210747
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210748
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?) [["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
210749
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210750
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210751
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notification_statuses" ("device_token_id", "notification_id", "status") VALUES (?, ?, ?)[0m [["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
210752
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
210753
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)[0m
|
210754
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? [["notification_id", 1]]
|
210755
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses" WHERE "notifiable_notification_statuses"."notification_id" = ? AND "notifiable_notification_statuses"."status" = 0[0m [["notification_id", 1]]
|
210756
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210757
|
+
[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", 2]]
|
210758
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["params", nil]]
|
210759
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210760
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notification_statuses"
|
210761
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_notification_statuses".* FROM "notifiable_notification_statuses"[0m
|
210762
|
+
[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]]
|
210763
|
+
[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]]
|
210764
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
210765
|
+
[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]]
|
210766
|
+
[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", 2]]
|
210767
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
210768
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
210769
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210770
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210771
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210772
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210773
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210774
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
210775
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210776
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210777
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210778
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210779
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210780
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210781
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210782
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210783
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
210784
|
+
[1m[35m (0.1ms)[0m begin transaction
|
210785
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210786
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210787
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210788
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210789
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210790
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210791
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210792
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
|
210793
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210794
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
210795
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210796
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210797
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210798
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
|
210799
|
+
[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", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["user_id", 1]]
|
210800
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210801
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
210802
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
210803
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210804
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notification_statuses" ("device_token_id", "status") VALUES (?, ?) [["device_token_id", 1], ["status", 200]]
|
210805
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210806
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
|
210807
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
210808
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
210809
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210810
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210811
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210812
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210813
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210814
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
210815
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210816
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210817
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210818
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210819
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210820
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210821
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210822
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210823
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
210824
|
+
[1m[35m (0.1ms)[0m begin transaction
|
210825
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210826
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00], ["updated_at", Sun, 13 Apr 2014 07:31:21 UTC +00:00]]
|
210827
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
210828
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
210829
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL[0m
|
210830
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
|
210831
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notification_statuses"[0m
|
210832
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
210833
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210834
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
210835
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
210836
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210837
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
210838
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
210839
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210840
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
210841
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
210842
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210843
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
210844
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notification_statuses";
|
210845
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
210846
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notification_statuses';
|
210847
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notifiable-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Kocemba
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|