notifiable-rails 0.12.0 → 0.12.1

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