notifiable-rails 0.27.1 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3c177ac0aa69878e018e081427052140eeb6f80
4
- data.tar.gz: 75cbb9a5a26126e9c632feeecb989ff94ffe070e
3
+ metadata.gz: aeabec773ae9f435112b3ad0f55e1e856c4b7d0b
4
+ data.tar.gz: c16bdba25be6e18b2664363b1658dcda997ca217
5
5
  SHA512:
6
- metadata.gz: f60aeddb3dddf3132d2a9f05b0b8799989a04dbf3270a28685afc4ebd021875ff4bfc856cfe95a2df97696f513bb4d9fedb0ef91c3d382f6df5a69a903b275d2
7
- data.tar.gz: c4b7cfc0305a08ca17fbc1ed7f2638d6e27b0623aaf172cbc11f52174afc8d792b17147871a0650522f307df703a680eb12a59dd8c79bb3e2b3f9068713a24f0
6
+ metadata.gz: 3238cf68726a685caccfd044cd2d90f16455ec4d169997a54caf05d12366cd1113a871248565782a87da407f3bcec44665893c15a4548b97faa7267127f45c94
7
+ data.tar.gz: c0de6c850aa810c49a10230be707817df262b3c481cbdcfc2eff310719995ee735a0d69d8a36a9a5abc6829bf19875e5be862034fa632432262fc569cddb254c
@@ -0,0 +1,5 @@
1
+ class AddThreadIdToNotifications < ActiveRecord::Migration[4.2]
2
+ def change
3
+ add_column :notifiable_notifications, :thead_id, :string
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.27.1"
2
+ VERSION = "0.28.0"
3
3
  end
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 201805292135000) do
13
+ ActiveRecord::Schema.define(version: 201806182135000) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "plpgsql"
@@ -56,6 +56,7 @@ ActiveRecord::Schema.define(version: 201805292135000) do
56
56
  t.integer "badge_count"
57
57
  t.text "last_error_message"
58
58
  t.string "title"
59
+ t.string "thead_id"
59
60
  end
60
61
 
61
62
  create_table "notifiable_statuses", id: :serial, force: :cascade do |t|
@@ -7159,3 +7159,825 @@ Migrating to AddLanguageAndCountryToDeviceTokens (201805292135000)
7159
7159
   (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL
7160
7160
   (0.2ms) RELEASE SAVEPOINT active_record_1
7161
7161
   (3.8ms) ROLLBACK
7162
+  (1.2ms) SELECT pg_try_advisory_lock(5131134053504291175)
7163
+  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7164
+ Migrating to AddTheadIdToNotifications (201806182135000)
7165
+  (0.6ms) SELECT pg_advisory_unlock(5131134053504291175)
7166
+  (0.2ms) SELECT pg_try_advisory_lock(5131134053504291175)
7167
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7168
+ Migrating to AddThreadIdToNotifications (201806182135000)
7169
+  (0.4ms) BEGIN
7170
+  (9.8ms) ALTER TABLE "notifiable_notifications" ADD "thead_id" character varying
7171
+ SQL (2.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "201806182135000"]]
7172
+  (1.9ms) COMMIT
7173
+ ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
7174
+  (0.2ms) BEGIN
7175
+  (0.2ms) COMMIT
7176
+  (0.2ms) SELECT pg_advisory_unlock(5131134053504291175)
7177
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7178
+  (0.2ms) SELECT pg_try_advisory_lock(5131134053504291175)
7179
+  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7180
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
7181
+  (0.1ms) BEGIN
7182
+  (0.1ms) COMMIT
7183
+  (0.2ms) SELECT pg_advisory_unlock(5131134053504291175)
7184
+  (0.2ms) BEGIN
7185
+  (0.1ms) SAVEPOINT active_record_1
7186
+  (1.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7187
+  (0.5ms) RELEASE SAVEPOINT active_record_1
7188
+  (7.0ms)  SELECT schemaname || '.' || tablename
7189
+ FROM pg_tables
7190
+ WHERE
7191
+ tablename !~ '_prt_' AND
7192
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
7193
+ schemaname = ANY (current_schemas(false))
7194
+ 
7195
+  (2.9ms) select table_name from information_schema.views where table_schema = 'notifiable-rails-test'
7196
+  (12.2ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7197
+  (0.1ms) SAVEPOINT active_record_1
7198
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7200
+  (13.4ms) ROLLBACK
7201
+  (0.2ms) BEGIN
7202
+  (0.2ms) SAVEPOINT active_record_1
7203
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7204
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7205
+  (9.1ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7206
+  (0.3ms) SAVEPOINT active_record_1
7207
+  (0.6ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7208
+  (0.3ms) RELEASE SAVEPOINT active_record_1
7209
+  (4.9ms) ROLLBACK
7210
+  (0.2ms) BEGIN
7211
+  (0.2ms) SAVEPOINT active_record_1
7212
+ SQL (1.6ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 1"], ["created_at", "2018-06-18 14:55:46.579358"], ["updated_at", "2018-06-18 14:55:46.579358"]]
7213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7214
+  (0.2ms) SAVEPOINT active_record_1
7215
+ SQL (1.3ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 432], ["created_at", "2018-06-18 14:55:46.613835"], ["updated_at", "2018-06-18 14:55:46.613835"]]
7216
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7217
+  (0.6ms) SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = $1 [["app_id", 432]]
7218
+  (0.2ms) SAVEPOINT active_record_1
7219
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7221
+  (7.7ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7222
+  (0.1ms) SAVEPOINT active_record_1
7223
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7225
+  (2.8ms) ROLLBACK
7226
+  (0.1ms) BEGIN
7227
+  (0.1ms) SAVEPOINT active_record_1
7228
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 2"], ["created_at", "2018-06-18 14:55:46.644261"], ["updated_at", "2018-06-18 14:55:46.644261"]]
7229
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7230
+  (0.1ms) SAVEPOINT active_record_1
7231
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 433], ["created_at", "2018-06-18 14:55:46.646524"], ["updated_at", "2018-06-18 14:55:46.646524"]]
7232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7233
+  (0.1ms) SAVEPOINT active_record_1
7234
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7236
+  (7.0ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7237
+  (0.1ms) SAVEPOINT active_record_1
7238
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7240
+  (3.7ms) ROLLBACK
7241
+  (0.2ms) BEGIN
7242
+  (0.2ms) SAVEPOINT active_record_1
7243
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 3"], ["created_at", "2018-06-18 14:55:46.664520"], ["updated_at", "2018-06-18 14:55:46.664520"]]
7244
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7245
+  (0.2ms) SAVEPOINT active_record_1
7246
+  (0.7ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7247
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7248
+  (9.5ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7249
+  (0.1ms) SAVEPOINT active_record_1
7250
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7252
+  (3.1ms) ROLLBACK
7253
+  (0.1ms) BEGIN
7254
+  (0.1ms) SAVEPOINT active_record_1
7255
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7256
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7257
+  (7.0ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7258
+  (0.1ms) SAVEPOINT active_record_1
7259
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7261
+  (2.7ms) ROLLBACK
7262
+  (0.1ms) BEGIN
7263
+  (0.1ms) SAVEPOINT active_record_1
7264
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7266
+  (10.0ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7267
+  (0.2ms) SAVEPOINT active_record_1
7268
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7269
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7270
+  (5.1ms) ROLLBACK
7271
+  (0.3ms) BEGIN
7272
+  (0.1ms) SAVEPOINT active_record_1
7273
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 4"], ["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", "2018-06-18 14:55:46.727139"], ["updated_at", "2018-06-18 14:55:46.727139"]]
7274
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7275
+  (0.1ms) SAVEPOINT active_record_1
7276
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 435], ["created_at", "2018-06-18 14:55:46.730110"], ["updated_at", "2018-06-18 14:55:46.730110"]]
7277
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7278
+  (0.1ms) SAVEPOINT active_record_1
7279
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7281
+  (6.9ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7282
+  (0.1ms) SAVEPOINT active_record_1
7283
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7285
+  (3.3ms) ROLLBACK
7286
+  (0.2ms) BEGIN
7287
+  (0.1ms) SAVEPOINT active_record_1
7288
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7290
+  (7.7ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7291
+  (0.1ms) SAVEPOINT active_record_1
7292
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7293
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7294
+  (4.1ms) ROLLBACK
7295
+  (0.2ms) BEGIN
7296
+  (0.2ms) SAVEPOINT active_record_1
7297
+ SQL (0.6ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 5"], ["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", "2018-06-18 14:55:46.765028"], ["updated_at", "2018-06-18 14:55:46.765028"]]
7298
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7299
+  (0.2ms) SAVEPOINT active_record_1
7300
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 436], ["created_at", "2018-06-18 14:55:46.769017"], ["updated_at", "2018-06-18 14:55:46.769017"]]
7301
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7302
+  (0.1ms) SAVEPOINT active_record_1
7303
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7304
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7305
+  (9.6ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7306
+  (0.1ms) SAVEPOINT active_record_1
7307
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7309
+  (2.7ms) ROLLBACK
7310
+  (0.1ms) BEGIN
7311
+  (0.1ms) SAVEPOINT active_record_1
7312
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 6"], ["configuration", "---\n:save_notification_statuses: false\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", "2018-06-18 14:55:46.788973"], ["updated_at", "2018-06-18 14:55:46.788973"]]
7313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7314
+  (0.1ms) SAVEPOINT active_record_1
7315
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 437], ["created_at", "2018-06-18 14:55:46.792023"], ["updated_at", "2018-06-18 14:55:46.792023"]]
7316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7317
+  (0.2ms) SAVEPOINT active_record_1
7318
+ Notifiable::DeviceToken Exists (1.7ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 437 LIMIT $2 [["token", "ABCD1"], ["LIMIT", 1]]
7319
+ SQL (1.7ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD1"], ["provider", "mock"], ["locale", "en"], ["app_id", 437], ["created_at", "2018-06-18 14:55:46.822542"], ["updated_at", "2018-06-18 14:55:46.822542"]]
7320
+  (0.4ms) RELEASE SAVEPOINT active_record_1
7321
+  (0.1ms) SAVEPOINT active_record_1
7322
+ Notifiable::DeviceToken Exists (0.4ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 437 LIMIT $2 [["token", "ABCD2"], ["LIMIT", 1]]
7323
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD2"], ["provider", "mock"], ["locale", "en"], ["app_id", 437], ["created_at", "2018-06-18 14:55:46.828181"], ["updated_at", "2018-06-18 14:55:46.828181"]]
7324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7325
+  (0.1ms) SAVEPOINT active_record_1
7326
+ SQL (0.6ms) UPDATE "notifiable_notifications" SET "sent_count" = $1, "gateway_accepted_count" = $2, "updated_at" = $3 WHERE "notifiable_notifications"."id" = $4 [["sent_count", 2], ["gateway_accepted_count", 2], ["updated_at", "2018-06-18 14:55:46.830315"], ["id", 197]]
7327
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7328
+  (0.6ms) SELECT COUNT(*) FROM "notifiable_statuses"
7329
+  (0.1ms) SAVEPOINT active_record_1
7330
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7332
+  (7.1ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7333
+  (0.1ms) SAVEPOINT active_record_1
7334
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7336
+  (2.8ms) ROLLBACK
7337
+  (0.1ms) BEGIN
7338
+  (0.1ms) SAVEPOINT active_record_1
7339
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 7"], ["configuration", "---\n:save_notification_statuses: false\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", "2018-06-18 14:55:46.850815"], ["updated_at", "2018-06-18 14:55:46.850815"]]
7340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7341
+  (0.1ms) SAVEPOINT active_record_1
7342
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 438], ["created_at", "2018-06-18 14:55:46.853945"], ["updated_at", "2018-06-18 14:55:46.853945"]]
7343
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7344
+  (0.1ms) SAVEPOINT active_record_1
7345
+ Notifiable::DeviceToken Exists (0.8ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 438 LIMIT $2 [["token", "ABCD3"], ["LIMIT", 1]]
7346
+ SQL (0.6ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD3"], ["provider", "mock"], ["locale", "en"], ["app_id", 438], ["created_at", "2018-06-18 14:55:46.858634"], ["updated_at", "2018-06-18 14:55:46.858634"]]
7347
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7348
+  (0.1ms) SAVEPOINT active_record_1
7349
+ Notifiable::DeviceToken Exists (0.4ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 438 LIMIT $2 [["token", "ABCD4"], ["LIMIT", 1]]
7350
+ SQL (0.7ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD4"], ["provider", "mock"], ["locale", "en"], ["app_id", 438], ["created_at", "2018-06-18 14:55:46.863281"], ["updated_at", "2018-06-18 14:55:46.863281"]]
7351
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7352
+  (0.2ms) SAVEPOINT active_record_1
7353
+ SQL (0.7ms) UPDATE "notifiable_notifications" SET "sent_count" = $1, "gateway_accepted_count" = $2, "updated_at" = $3 WHERE "notifiable_notifications"."id" = $4 [["sent_count", 2], ["gateway_accepted_count", 2], ["updated_at", "2018-06-18 14:55:46.865896"], ["id", 198]]
7354
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7355
+ Notifiable::Notification Load (0.4ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT $1 [["LIMIT", 1]]
7356
+  (0.2ms) SAVEPOINT active_record_1
7357
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7358
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7359
+  (10.1ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7360
+  (0.2ms) SAVEPOINT active_record_1
7361
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7362
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7363
+  (2.9ms) ROLLBACK
7364
+  (0.1ms) BEGIN
7365
+  (0.1ms) SAVEPOINT active_record_1
7366
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 8"], ["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", "2018-06-18 14:55:46.889708"], ["updated_at", "2018-06-18 14:55:46.889708"]]
7367
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7368
+  (0.1ms) SAVEPOINT active_record_1
7369
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 439], ["created_at", "2018-06-18 14:55:46.893144"], ["updated_at", "2018-06-18 14:55:46.893144"]]
7370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7371
+  (0.2ms) SAVEPOINT active_record_1
7372
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 439 LIMIT $2 [["token", "ABCD5"], ["LIMIT", 1]]
7373
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD5"], ["provider", "mock"], ["locale", "en"], ["app_id", 439], ["created_at", "2018-06-18 14:55:46.897347"], ["updated_at", "2018-06-18 14:55:46.897347"]]
7374
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7375
+  (0.1ms) SAVEPOINT active_record_1
7376
+ Notifiable::DeviceToken Exists (0.3ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 439 LIMIT $2 [["token", "ABCD6"], ["LIMIT", 1]]
7377
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD6"], ["provider", "mock"], ["locale", "en"], ["app_id", 439], ["created_at", "2018-06-18 14:55:46.900841"], ["updated_at", "2018-06-18 14:55:46.900841"]]
7378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7379
+  (0.1ms) SAVEPOINT active_record_1
7380
+ Notifiable::Notification Load (0.6ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT $2 [["id", 199], ["LIMIT", 1]]
7381
+ Notifiable::DeviceToken Load (0.8ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT $2 [["id", 165], ["LIMIT", 1]]
7382
+ SQL (1.2ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 199], ["device_token_id", 165], ["status", 0], ["created_at", "2018-06-18 14:55:46.898932"]]
7383
+ Notifiable::Notification Load (0.5ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT $2 [["id", 199], ["LIMIT", 1]]
7384
+ Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT $2 [["id", 166], ["LIMIT", 1]]
7385
+ SQL (0.5ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 199], ["device_token_id", 166], ["status", 0], ["created_at", "2018-06-18 14:55:46.902194"]]
7386
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7387
+  (0.1ms) SAVEPOINT active_record_1
7388
+ SQL (0.4ms) UPDATE "notifiable_notifications" SET "sent_count" = $1, "gateway_accepted_count" = $2, "updated_at" = $3 WHERE "notifiable_notifications"."id" = $4 [["sent_count", 2], ["gateway_accepted_count", 2], ["updated_at", "2018-06-18 14:55:46.928550"], ["id", 199]]
7389
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7390
+ Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT $1 [["LIMIT", 1]]
7391
+  (0.1ms) SAVEPOINT active_record_1
7392
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7394
+  (8.0ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7395
+  (0.1ms) SAVEPOINT active_record_1
7396
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7398
+  (2.9ms) ROLLBACK
7399
+  (0.1ms) BEGIN
7400
+  (0.1ms) SAVEPOINT active_record_1
7401
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 9"], ["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", "2018-06-18 14:55:46.947102"], ["updated_at", "2018-06-18 14:55:46.947102"]]
7402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7403
+  (0.1ms) SAVEPOINT active_record_1
7404
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 440], ["created_at", "2018-06-18 14:55:46.950240"], ["updated_at", "2018-06-18 14:55:46.950240"]]
7405
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7406
+  (0.1ms) SAVEPOINT active_record_1
7407
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 440 LIMIT $2 [["token", "ABCD7"], ["LIMIT", 1]]
7408
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD7"], ["provider", "mock"], ["locale", "en"], ["app_id", 440], ["created_at", "2018-06-18 14:55:46.953769"], ["updated_at", "2018-06-18 14:55:46.953769"]]
7409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7410
+  (0.1ms) SAVEPOINT active_record_1
7411
+ Notifiable::DeviceToken Exists (0.3ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 440 LIMIT $2 [["token", "ABCD8"], ["LIMIT", 1]]
7412
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD8"], ["provider", "mock"], ["locale", "en"], ["app_id", 440], ["created_at", "2018-06-18 14:55:46.957096"], ["updated_at", "2018-06-18 14:55:46.957096"]]
7413
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7414
+  (0.1ms) SAVEPOINT active_record_1
7415
+ Notifiable::Notification Load (0.4ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT $2 [["id", 200], ["LIMIT", 1]]
7416
+ Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT $2 [["id", 167], ["LIMIT", 1]]
7417
+ SQL (0.5ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 200], ["device_token_id", 167], ["status", 0], ["created_at", "2018-06-18 14:55:46.955288"]]
7418
+ Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT $2 [["id", 200], ["LIMIT", 1]]
7419
+ Notifiable::DeviceToken Load (0.4ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT $2 [["id", 168], ["LIMIT", 1]]
7420
+ SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 200], ["device_token_id", 168], ["status", 0], ["created_at", "2018-06-18 14:55:46.959155"]]
7421
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7422
+  (0.1ms) SAVEPOINT active_record_1
7423
+ SQL (0.5ms) UPDATE "notifiable_notifications" SET "sent_count" = $1, "gateway_accepted_count" = $2, "updated_at" = $3 WHERE "notifiable_notifications"."id" = $4 [["sent_count", 2], ["gateway_accepted_count", 2], ["updated_at", "2018-06-18 14:55:46.969700"], ["id", 200]]
7424
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7425
+  (0.5ms) SELECT COUNT(*) FROM "notifiable_statuses"
7426
+  (0.2ms) SAVEPOINT active_record_1
7427
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7428
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7429
+  (10.2ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7430
+  (0.2ms) SAVEPOINT active_record_1
7431
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7433
+  (2.8ms) ROLLBACK
7434
+  (0.1ms) BEGIN
7435
+  (0.1ms) SAVEPOINT active_record_1
7436
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 10"], ["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", "2018-06-18 14:55:46.992656"], ["updated_at", "2018-06-18 14:55:46.992656"]]
7437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7438
+  (0.1ms) SAVEPOINT active_record_1
7439
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 441], ["created_at", "2018-06-18 14:55:46.995665"], ["updated_at", "2018-06-18 14:55:46.995665"]]
7440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7441
+  (0.1ms) SAVEPOINT active_record_1
7442
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7444
+  (7.0ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7445
+  (0.1ms) SAVEPOINT active_record_1
7446
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7448
+  (3.7ms) ROLLBACK
7449
+  (0.1ms) BEGIN
7450
+  (0.2ms) SAVEPOINT active_record_1
7451
+ SQL (0.9ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 11"], ["created_at", "2018-06-18 14:55:47.014645"], ["updated_at", "2018-06-18 14:55:47.014645"]]
7452
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7453
+  (0.2ms) SAVEPOINT active_record_1
7454
+ SQL (0.9ms) INSERT INTO "notifiable_notifications" ("app_id", "parameters", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["app_id", 442], ["parameters", "---\n:custom_property: A different message\n"], ["created_at", "2018-06-18 14:55:47.018247"], ["updated_at", "2018-06-18 14:55:47.018247"]]
7455
+  (0.3ms) RELEASE SAVEPOINT active_record_1
7456
+  (0.2ms) SAVEPOINT active_record_1
7457
+  (0.7ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7458
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7459
+  (8.5ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7460
+  (0.4ms) SAVEPOINT active_record_1
7461
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7462
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7463
+  (2.6ms) ROLLBACK
7464
+  (0.1ms) BEGIN
7465
+  (0.1ms) SAVEPOINT active_record_1
7466
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 12"], ["created_at", "2018-06-18 14:55:47.040026"], ["updated_at", "2018-06-18 14:55:47.040026"]]
7467
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7468
+  (0.1ms) SAVEPOINT active_record_1
7469
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 443], ["created_at", "2018-06-18 14:55:47.042516"], ["updated_at", "2018-06-18 14:55:47.042516"]]
7470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7471
+  (0.1ms) SAVEPOINT active_record_1
7472
+ SQL (0.3ms) UPDATE "notifiable_notifications" SET "updated_at" = $1, "last_error_message" = $2 WHERE "notifiable_notifications"."id" = $3 [["updated_at", "2018-06-18 14:55:47.044676"], ["last_error_message", "SSL error occured"], ["id", 203]]
7473
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7474
+  (0.1ms) SAVEPOINT active_record_1
7475
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7477
+  (7.7ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7478
+  (0.3ms) SAVEPOINT active_record_1
7479
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7481
+  (3.9ms) ROLLBACK
7482
+  (0.2ms) BEGIN
7483
+  (0.2ms) SAVEPOINT active_record_1
7484
+ SQL (0.8ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 13"], ["created_at", "2018-06-18 14:55:47.064425"], ["updated_at", "2018-06-18 14:55:47.064425"]]
7485
+  (0.3ms) RELEASE SAVEPOINT active_record_1
7486
+  (0.1ms) SAVEPOINT active_record_1
7487
+ SQL (1.0ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 444], ["created_at", "2018-06-18 14:55:47.067866"], ["updated_at", "2018-06-18 14:55:47.067866"]]
7488
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7489
+  (0.2ms) SAVEPOINT active_record_1
7490
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 14"], ["created_at", "2018-06-18 14:55:47.081389"], ["updated_at", "2018-06-18 14:55:47.081389"]]
7491
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7492
+  (0.1ms) SAVEPOINT active_record_1
7493
+ Notifiable::DeviceToken Exists (0.7ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 445 LIMIT $2 [["token", "ABCD9"], ["LIMIT", 1]]
7494
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["token", "ABCD9"], ["provider", "mock"], ["app_id", 445], ["created_at", "2018-06-18 14:55:47.085129"], ["updated_at", "2018-06-18 14:55:47.085129"]]
7495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7496
+  (0.1ms) SAVEPOINT active_record_1
7497
+ SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 204], ["device_token_id", 169], ["status", 0], ["created_at", "2018-06-18 14:55:47.087109"]]
7498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7499
+  (0.1ms) SAVEPOINT active_record_1
7500
+ Notifiable::NotificationStatus Load (0.2ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = $1 [["notification_id", 204]]
7501
+ SQL (0.3ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = $1 [["id", 80]]
7502
+ SQL (0.3ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 [["id", 204]]
7503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7504
+  (0.2ms) SELECT COUNT(*) FROM "notifiable_statuses"
7505
+  (0.1ms) SAVEPOINT active_record_1
7506
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7507
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7508
+  (7.2ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7509
+  (0.1ms) SAVEPOINT active_record_1
7510
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7512
+  (2.7ms) ROLLBACK
7513
+  (0.1ms) BEGIN
7514
+  (0.2ms) SAVEPOINT active_record_1
7515
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 15"], ["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["created_at", "2018-06-18 14:55:47.108796"], ["updated_at", "2018-06-18 14:55:47.108796"]]
7516
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7517
+  (0.2ms) SAVEPOINT active_record_1
7518
+ SQL (0.7ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 446], ["created_at", "2018-06-18 14:55:47.112144"], ["updated_at", "2018-06-18 14:55:47.112144"]]
7519
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7520
+  (0.2ms) SAVEPOINT active_record_1
7521
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 16"], ["created_at", "2018-06-18 14:55:47.115277"], ["updated_at", "2018-06-18 14:55:47.115277"]]
7522
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7523
+  (0.2ms) SAVEPOINT active_record_1
7524
+ Notifiable::DeviceToken Exists (0.8ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 447 LIMIT $2 [["token", "ABCD10"], ["LIMIT", 1]]
7525
+ SQL (0.6ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD10"], ["provider", "mock"], ["locale", "en"], ["app_id", 447], ["created_at", "2018-06-18 14:55:47.119520"], ["updated_at", "2018-06-18 14:55:47.119520"]]
7526
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7527
+  (0.2ms) SAVEPOINT active_record_1
7528
+ SQL (0.6ms) UPDATE "notifiable_notifications" SET "sent_count" = $1, "gateway_accepted_count" = $2, "updated_at" = $3 WHERE "notifiable_notifications"."id" = $4 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", "2018-06-18 14:55:47.122838"], ["id", 205]]
7529
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7530
+  (0.3ms) SAVEPOINT active_record_1
7531
+ Notifiable::Notification Load (0.4ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT $2 [["id", 205], ["LIMIT", 1]]
7532
+ Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT $2 [["id", 170], ["LIMIT", 1]]
7533
+ SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 205], ["device_token_id", 170], ["status", 0], ["created_at", "2018-06-18 14:55:47.121897"]]
7534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7535
+  (0.1ms) SAVEPOINT active_record_1
7536
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7537
+ Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT $1 [["LIMIT", 1]]
7538
+  (0.1ms) SAVEPOINT active_record_1
7539
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7541
+  (6.8ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7542
+  (0.1ms) SAVEPOINT active_record_1
7543
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7545
+  (2.7ms) ROLLBACK
7546
+  (0.1ms) BEGIN
7547
+  (0.1ms) SAVEPOINT active_record_1
7548
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 17"], ["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["created_at", "2018-06-18 14:55:47.146201"], ["updated_at", "2018-06-18 14:55:47.146201"]]
7549
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7550
+  (0.1ms) SAVEPOINT active_record_1
7551
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 448], ["created_at", "2018-06-18 14:55:47.148707"], ["updated_at", "2018-06-18 14:55:47.148707"]]
7552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7553
+  (0.1ms) SAVEPOINT active_record_1
7554
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 18"], ["created_at", "2018-06-18 14:55:47.150704"], ["updated_at", "2018-06-18 14:55:47.150704"]]
7555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7556
+  (0.1ms) SAVEPOINT active_record_1
7557
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 449 LIMIT $2 [["token", "ABCD11"], ["LIMIT", 1]]
7558
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD11"], ["provider", "mock"], ["locale", "en"], ["app_id", 449], ["created_at", "2018-06-18 14:55:47.153272"], ["updated_at", "2018-06-18 14:55:47.153272"]]
7559
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7560
+  (0.1ms) SAVEPOINT active_record_1
7561
+ SQL (0.4ms) UPDATE "notifiable_notifications" SET "sent_count" = $1, "gateway_accepted_count" = $2, "updated_at" = $3 WHERE "notifiable_notifications"."id" = $4 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", "2018-06-18 14:55:47.155513"], ["id", 206]]
7562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7563
+  (0.1ms) SAVEPOINT active_record_1
7564
+ Notifiable::Notification Load (0.4ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT $2 [["id", 206], ["LIMIT", 1]]
7565
+ Notifiable::DeviceToken Load (0.4ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT $2 [["id", 171], ["LIMIT", 1]]
7566
+ SQL (0.7ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 206], ["device_token_id", 171], ["status", 0], ["created_at", "2018-06-18 14:55:47.154956"]]
7567
+  (0.3ms) RELEASE SAVEPOINT active_record_1
7568
+  (0.2ms) SAVEPOINT active_record_1
7569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7570
+  (0.4ms) SELECT COUNT(*) FROM "notifiable_statuses"
7571
+  (0.1ms) SAVEPOINT active_record_1
7572
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7573
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7574
+  (10.0ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7575
+  (0.2ms) SAVEPOINT active_record_1
7576
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7577
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7578
+  (3.7ms) ROLLBACK
7579
+  (0.1ms) BEGIN
7580
+  (0.2ms) SAVEPOINT active_record_1
7581
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 19"], ["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["created_at", "2018-06-18 14:55:47.184926"], ["updated_at", "2018-06-18 14:55:47.184926"]]
7582
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7583
+  (0.1ms) SAVEPOINT active_record_1
7584
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 450], ["created_at", "2018-06-18 14:55:47.187478"], ["updated_at", "2018-06-18 14:55:47.187478"]]
7585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7586
+  (0.1ms) SAVEPOINT active_record_1
7587
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 20"], ["created_at", "2018-06-18 14:55:47.189614"], ["updated_at", "2018-06-18 14:55:47.189614"]]
7588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7589
+  (0.1ms) SAVEPOINT active_record_1
7590
+ Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 451 LIMIT $2 [["token", "ABCD12"], ["LIMIT", 1]]
7591
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD12"], ["provider", "mock"], ["locale", "en"], ["app_id", 451], ["created_at", "2018-06-18 14:55:47.192593"], ["updated_at", "2018-06-18 14:55:47.192593"]]
7592
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7593
+  (0.1ms) SAVEPOINT active_record_1
7594
+ SQL (0.3ms) UPDATE "notifiable_notifications" SET "sent_count" = $1, "gateway_accepted_count" = $2, "updated_at" = $3 WHERE "notifiable_notifications"."id" = $4 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", "2018-06-18 14:55:47.194854"], ["id", 207]]
7595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7596
+  (0.1ms) SAVEPOINT active_record_1
7597
+ Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT $2 [["id", 207], ["LIMIT", 1]]
7598
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT $2 [["id", 172], ["LIMIT", 1]]
7599
+ SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 207], ["device_token_id", 172], ["status", 0], ["created_at", "2018-06-18 14:55:47.194245"]]
7600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7601
+  (0.1ms) SAVEPOINT active_record_1
7602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7603
+ Notifiable::NotificationStatus Load (0.2ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT $1 [["LIMIT", 1]]
7604
+  (0.1ms) SAVEPOINT active_record_1
7605
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7607
+  (8.2ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7608
+  (0.2ms) SAVEPOINT active_record_1
7609
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7610
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7611
+  (4.1ms) ROLLBACK
7612
+  (0.2ms) BEGIN
7613
+  (0.2ms) SAVEPOINT active_record_1
7614
+ SQL (0.7ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 21"], ["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["created_at", "2018-06-18 14:55:47.220747"], ["updated_at", "2018-06-18 14:55:47.220747"]]
7615
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7616
+  (0.2ms) SAVEPOINT active_record_1
7617
+ SQL (0.7ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 452], ["created_at", "2018-06-18 14:55:47.224487"], ["updated_at", "2018-06-18 14:55:47.224487"]]
7618
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7619
+  (0.1ms) SAVEPOINT active_record_1
7620
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 22"], ["created_at", "2018-06-18 14:55:47.227782"], ["updated_at", "2018-06-18 14:55:47.227782"]]
7621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7622
+  (0.1ms) SAVEPOINT active_record_1
7623
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 453 LIMIT $2 [["token", "ABCD13"], ["LIMIT", 1]]
7624
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD13"], ["provider", "mock"], ["locale", "en"], ["app_id", 453], ["created_at", "2018-06-18 14:55:47.230706"], ["updated_at", "2018-06-18 14:55:47.230706"]]
7625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7626
+  (0.1ms) SAVEPOINT active_record_1
7627
+ SQL (0.3ms) UPDATE "notifiable_notifications" SET "sent_count" = $1, "gateway_accepted_count" = $2, "updated_at" = $3 WHERE "notifiable_notifications"."id" = $4 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", "2018-06-18 14:55:47.232746"], ["id", 208]]
7628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7629
+  (0.1ms) SAVEPOINT active_record_1
7630
+ Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT $2 [["id", 208], ["LIMIT", 1]]
7631
+ Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT $2 [["id", 173], ["LIMIT", 1]]
7632
+ SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 208], ["device_token_id", 173], ["status", 0], ["created_at", "2018-06-18 14:55:47.232218"]]
7633
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7634
+  (0.1ms) SAVEPOINT active_record_1
7635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7636
+ Notifiable::Notification Load (0.2ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT $1 [["LIMIT", 1]]
7637
+  (0.1ms) SAVEPOINT active_record_1
7638
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7640
+  (7.1ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7641
+  (0.2ms) SAVEPOINT active_record_1
7642
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7644
+  (3.1ms) ROLLBACK
7645
+  (0.2ms) BEGIN
7646
+  (0.1ms) SAVEPOINT active_record_1
7647
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 23"], ["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["created_at", "2018-06-18 14:55:47.254925"], ["updated_at", "2018-06-18 14:55:47.254925"]]
7648
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7649
+  (0.1ms) SAVEPOINT active_record_1
7650
+ SQL (0.7ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 454], ["created_at", "2018-06-18 14:55:47.257340"], ["updated_at", "2018-06-18 14:55:47.257340"]]
7651
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7652
+  (0.2ms) SAVEPOINT active_record_1
7653
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 24"], ["created_at", "2018-06-18 14:55:47.260907"], ["updated_at", "2018-06-18 14:55:47.260907"]]
7654
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7655
+  (0.2ms) SAVEPOINT active_record_1
7656
+ Notifiable::DeviceToken Exists (0.9ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 455 LIMIT $2 [["token", "ABCD14"], ["LIMIT", 1]]
7657
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD14"], ["provider", "mock"], ["locale", "en"], ["app_id", 455], ["created_at", "2018-06-18 14:55:47.265152"], ["updated_at", "2018-06-18 14:55:47.265152"]]
7658
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7659
+  (0.2ms) SAVEPOINT active_record_1
7660
+ SQL (0.6ms) UPDATE "notifiable_notifications" SET "sent_count" = $1, "gateway_accepted_count" = $2, "updated_at" = $3 WHERE "notifiable_notifications"."id" = $4 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", "2018-06-18 14:55:47.268508"], ["id", 209]]
7661
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7662
+  (0.2ms) SAVEPOINT active_record_1
7663
+ Notifiable::Notification Load (0.5ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT $2 [["id", 209], ["LIMIT", 1]]
7664
+ Notifiable::DeviceToken Load (0.6ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT $2 [["id", 174], ["LIMIT", 1]]
7665
+ SQL (0.7ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 209], ["device_token_id", 174], ["status", 0], ["created_at", "2018-06-18 14:55:47.267683"]]
7666
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7667
+  (0.2ms) SAVEPOINT active_record_1
7668
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7669
+ Notifiable::NotificationStatus Load (0.3ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT $1 [["LIMIT", 1]]
7670
+  (0.1ms) SAVEPOINT active_record_1
7671
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7673
+  (7.4ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7674
+  (0.1ms) SAVEPOINT active_record_1
7675
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7677
+  (2.9ms) ROLLBACK
7678
+  (0.1ms) BEGIN
7679
+  (0.1ms) SAVEPOINT active_record_1
7680
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "configuration", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "App 25"], ["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["created_at", "2018-06-18 14:55:47.294698"], ["updated_at", "2018-06-18 14:55:47.294698"]]
7681
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7682
+  (0.1ms) SAVEPOINT active_record_1
7683
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 456], ["created_at", "2018-06-18 14:55:47.297546"], ["updated_at", "2018-06-18 14:55:47.297546"]]
7684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7685
+  (0.1ms) SAVEPOINT active_record_1
7686
+ SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 26"], ["created_at", "2018-06-18 14:55:47.299669"], ["updated_at", "2018-06-18 14:55:47.299669"]]
7687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7688
+  (0.1ms) SAVEPOINT active_record_1
7689
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 457 LIMIT $2 [["token", "ABCD15"], ["LIMIT", 1]]
7690
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD15"], ["provider", "mock"], ["locale", "en"], ["app_id", 457], ["created_at", "2018-06-18 14:55:47.302582"], ["updated_at", "2018-06-18 14:55:47.302582"]]
7691
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7692
+  (0.2ms) SAVEPOINT active_record_1
7693
+ SQL (0.4ms) UPDATE "notifiable_notifications" SET "sent_count" = $1, "gateway_accepted_count" = $2, "updated_at" = $3 WHERE "notifiable_notifications"."id" = $4 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", "2018-06-18 14:55:47.305020"], ["id", 210]]
7694
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7695
+  (0.1ms) SAVEPOINT active_record_1
7696
+ Notifiable::Notification Load (0.6ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT $2 [["id", 210], ["LIMIT", 1]]
7697
+ Notifiable::DeviceToken Load (0.4ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT $2 [["id", 175], ["LIMIT", 1]]
7698
+ SQL (0.6ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 210], ["device_token_id", 175], ["status", 0], ["created_at", "2018-06-18 14:55:47.304293"]]
7699
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7700
+  (0.3ms) SAVEPOINT active_record_1
7701
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7702
+ Notifiable::Notification Load (0.4ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT $1 [["LIMIT", 1]]
7703
+  (0.2ms) SAVEPOINT active_record_1
7704
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7705
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7706
+  (9.4ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7707
+  (0.2ms) SAVEPOINT active_record_1
7708
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7710
+  (3.3ms) ROLLBACK
7711
+  (0.1ms) BEGIN
7712
+  (0.1ms) SAVEPOINT active_record_1
7713
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 27"], ["created_at", "2018-06-18 14:55:47.334231"], ["updated_at", "2018-06-18 14:55:47.334231"]]
7714
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7715
+  (0.1ms) SAVEPOINT active_record_1
7716
+ SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 458], ["created_at", "2018-06-18 14:55:47.336152"], ["updated_at", "2018-06-18 14:55:47.336152"]]
7717
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7718
+  (0.1ms) SAVEPOINT active_record_1
7719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7720
+  (0.4ms) SELECT COUNT(*) FROM "notifiable_statuses"
7721
+  (0.1ms) SAVEPOINT active_record_1
7722
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7724
+  (7.3ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7725
+  (0.1ms) SAVEPOINT active_record_1
7726
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7727
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7728
+  (3.0ms) ROLLBACK
7729
+  (0.2ms) BEGIN
7730
+  (0.2ms) SAVEPOINT active_record_1
7731
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 28"], ["created_at", "2018-06-18 14:55:47.355373"], ["updated_at", "2018-06-18 14:55:47.355373"]]
7732
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7733
+  (0.1ms) SAVEPOINT active_record_1
7734
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 459 LIMIT $2 [["token", "ABCD16"], ["LIMIT", 1]]
7735
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["token", "ABCD16"], ["provider", "mock"], ["app_id", 459], ["created_at", "2018-06-18 14:55:47.358677"], ["updated_at", "2018-06-18 14:55:47.358677"]]
7736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7737
+  (0.1ms) SAVEPOINT active_record_1
7738
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7740
+  (9.3ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7741
+  (0.2ms) SAVEPOINT active_record_1
7742
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7743
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7744
+  (4.0ms) ROLLBACK
7745
+  (0.1ms) BEGIN
7746
+  (0.2ms) SAVEPOINT active_record_1
7747
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 29"], ["created_at", "2018-06-18 14:55:47.379637"], ["updated_at", "2018-06-18 14:55:47.379637"]]
7748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7749
+  (0.1ms) SAVEPOINT active_record_1
7750
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 460 LIMIT $2 [["token", "ABCD17"], ["LIMIT", 1]]
7751
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at", "language") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD17"], ["provider", "mock"], ["app_id", 460], ["created_at", "2018-06-18 14:55:47.382756"], ["updated_at", "2018-06-18 14:55:47.382756"], ["language", "en"]]
7752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7753
+  (0.1ms) SAVEPOINT active_record_1
7754
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7755
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7756
+  (6.8ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7757
+  (0.1ms) SAVEPOINT active_record_1
7758
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7760
+  (2.7ms) ROLLBACK
7761
+  (0.1ms) BEGIN
7762
+  (0.1ms) SAVEPOINT active_record_1
7763
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 30"], ["created_at", "2018-06-18 14:55:47.398748"], ["updated_at", "2018-06-18 14:55:47.398748"]]
7764
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7765
+  (0.1ms) SAVEPOINT active_record_1
7766
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 461 LIMIT $2 [["token", "ABCD18"], ["LIMIT", 1]]
7767
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at", "language") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD18"], ["provider", "mock"], ["app_id", 461], ["created_at", "2018-06-18 14:55:47.401768"], ["updated_at", "2018-06-18 14:55:47.401768"], ["language", "ido"]]
7768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7769
+  (0.1ms) SAVEPOINT active_record_1
7770
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7772
+  (9.3ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7773
+  (0.2ms) SAVEPOINT active_record_1
7774
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7775
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7776
+  (4.3ms) ROLLBACK
7777
+  (0.2ms) BEGIN
7778
+  (0.2ms) SAVEPOINT active_record_1
7779
+ SQL (0.7ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 31"], ["created_at", "2018-06-18 14:55:47.423441"], ["updated_at", "2018-06-18 14:55:47.423441"]]
7780
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7781
+  (0.2ms) SAVEPOINT active_record_1
7782
+ Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 462 LIMIT $2 [["token", "ABCD19"], ["LIMIT", 1]]
7783
+ SQL (0.5ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at", "name") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD19"], ["provider", "mock"], ["app_id", 462], ["created_at", "2018-06-18 14:55:47.427866"], ["updated_at", "2018-06-18 14:55:47.427866"], ["name", "Matt's iPhone"]]
7784
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7785
+  (0.2ms) SAVEPOINT active_record_1
7786
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7787
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7788
+  (7.7ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7789
+  (0.1ms) SAVEPOINT active_record_1
7790
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7791
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7792
+  (2.7ms) ROLLBACK
7793
+  (0.1ms) BEGIN
7794
+  (0.1ms) SAVEPOINT active_record_1
7795
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 32"], ["created_at", "2018-06-18 14:55:47.445799"], ["updated_at", "2018-06-18 14:55:47.445799"]]
7796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7797
+  (0.1ms) SAVEPOINT active_record_1
7798
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 463 LIMIT $2 [["token", "ABCD20"], ["LIMIT", 1]]
7799
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "locale", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD20"], ["provider", "mock"], ["locale", "en"], ["app_id", 463], ["created_at", "2018-06-18 14:55:47.448988"], ["updated_at", "2018-06-18 14:55:47.448988"]]
7800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7801
+  (0.1ms) SAVEPOINT active_record_1
7802
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7804
+  (8.3ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7805
+  (0.2ms) SAVEPOINT active_record_1
7806
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7807
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7808
+  (4.2ms) ROLLBACK
7809
+  (0.2ms) BEGIN
7810
+  (0.2ms) SAVEPOINT active_record_1
7811
+ SQL (0.7ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 33"], ["created_at", "2018-06-18 14:55:47.469753"], ["updated_at", "2018-06-18 14:55:47.469753"]]
7812
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7813
+  (0.1ms) SAVEPOINT active_record_1
7814
+ Notifiable::DeviceToken Exists (0.8ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 464 LIMIT $2 [["token", "ABCD21"], ["LIMIT", 1]]
7815
+ SQL (3.8ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at", "lonlat") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD21"], ["provider", "mock"], ["app_id", 464], ["created_at", "2018-06-18 14:55:47.474820"], ["updated_at", "2018-06-18 14:55:47.474820"], ["lonlat", "0020000001000010e6c05e8000000000004047800000000000"]]
7816
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7817
+  (8.7ms) SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE (ST_DWithin(lonlat, ST_MakePoint(-122,47), 500))
7818
+  (0.1ms) SAVEPOINT active_record_1
7819
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7821
+  (7.0ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7822
+  (0.1ms) SAVEPOINT active_record_1
7823
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7824
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7825
+  (3.3ms) ROLLBACK
7826
+  (0.2ms) BEGIN
7827
+  (0.1ms) SAVEPOINT active_record_1
7828
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 34"], ["created_at", "2018-06-18 14:55:47.506095"], ["updated_at", "2018-06-18 14:55:47.506095"]]
7829
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7830
+  (0.2ms) SAVEPOINT active_record_1
7831
+ SQL (0.7ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 465], ["created_at", "2018-06-18 14:55:47.508642"], ["updated_at", "2018-06-18 14:55:47.508642"]]
7832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7833
+  (0.1ms) SAVEPOINT active_record_1
7834
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 35"], ["created_at", "2018-06-18 14:55:47.511580"], ["updated_at", "2018-06-18 14:55:47.511580"]]
7835
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7836
+  (0.2ms) SAVEPOINT active_record_1
7837
+ Notifiable::DeviceToken Exists (0.8ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 466 LIMIT $2 [["token", "ABCD22"], ["LIMIT", 1]]
7838
+ SQL (0.6ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["token", "ABCD22"], ["provider", "mock"], ["app_id", 466], ["created_at", "2018-06-18 14:55:47.515484"], ["updated_at", "2018-06-18 14:55:47.515484"]]
7839
+  (0.3ms) RELEASE SAVEPOINT active_record_1
7840
+  (0.2ms) SAVEPOINT active_record_1
7841
+ SQL (0.7ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 212], ["device_token_id", 182], ["status", 0], ["created_at", "2018-06-18 14:55:47.518391"]]
7842
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7843
+  (0.2ms) SAVEPOINT active_record_1
7844
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 36"], ["created_at", "2018-06-18 14:55:47.521349"], ["updated_at", "2018-06-18 14:55:47.521349"]]
7845
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7846
+  (0.2ms) SAVEPOINT active_record_1
7847
+ SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 467], ["created_at", "2018-06-18 14:55:47.523784"], ["updated_at", "2018-06-18 14:55:47.523784"]]
7848
+  (0.3ms) RELEASE SAVEPOINT active_record_1
7849
+  (0.1ms) SAVEPOINT active_record_1
7850
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 37"], ["created_at", "2018-06-18 14:55:47.526972"], ["updated_at", "2018-06-18 14:55:47.526972"]]
7851
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7852
+  (0.1ms) SAVEPOINT active_record_1
7853
+ Notifiable::DeviceToken Exists (0.3ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 468 LIMIT $2 [["token", "ABCD23"], ["LIMIT", 1]]
7854
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["token", "ABCD23"], ["provider", "mock"], ["app_id", 468], ["created_at", "2018-06-18 14:55:47.529849"], ["updated_at", "2018-06-18 14:55:47.529849"]]
7855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7856
+  (0.1ms) SAVEPOINT active_record_1
7857
+ SQL (0.2ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 213], ["device_token_id", 183], ["status", 0], ["created_at", "2018-06-18 14:55:47.531511"]]
7858
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7859
+  (0.1ms) SAVEPOINT active_record_1
7860
+ SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 38"], ["created_at", "2018-06-18 14:55:47.533204"], ["updated_at", "2018-06-18 14:55:47.533204"]]
7861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7862
+  (0.1ms) SAVEPOINT active_record_1
7863
+ Notifiable::DeviceToken Exists (0.3ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 469 LIMIT $2 [["token", "ABCD24"], ["LIMIT", 1]]
7864
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["token", "ABCD24"], ["provider", "mock"], ["app_id", 469], ["created_at", "2018-06-18 14:55:47.536772"], ["updated_at", "2018-06-18 14:55:47.536772"]]
7865
+ SQL (0.4ms) UPDATE "notifiable_statuses" SET "device_token_id" = $1 WHERE "notifiable_statuses"."id" = $2 [["device_token_id", 184], ["id", 87]]
7866
+ SQL (0.3ms) UPDATE "notifiable_statuses" SET "device_token_id" = $1 WHERE "notifiable_statuses"."id" = $2 [["device_token_id", 184], ["id", 88]]
7867
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7868
+  (0.3ms) SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."device_token_id" = $1 [["device_token_id", 184]]
7869
+  (0.1ms) SAVEPOINT active_record_1
7870
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7871
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7872
+  (6.9ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7873
+  (0.1ms) SAVEPOINT active_record_1
7874
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7875
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7876
+  (2.6ms) ROLLBACK
7877
+  (0.2ms) BEGIN
7878
+  (0.2ms) SAVEPOINT active_record_1
7879
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 39"], ["created_at", "2018-06-18 14:55:47.556461"], ["updated_at", "2018-06-18 14:55:47.556461"]]
7880
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7881
+ Notifiable::DeviceToken Exists (0.7ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 470 LIMIT $2 [["token", ""], ["LIMIT", 1]]
7882
+  (0.2ms) SAVEPOINT active_record_1
7883
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7885
+  (11.6ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7886
+  (0.3ms) SAVEPOINT active_record_1
7887
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7889
+  (2.8ms) ROLLBACK
7890
+  (0.2ms) BEGIN
7891
+  (0.2ms) SAVEPOINT active_record_1
7892
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 40"], ["created_at", "2018-06-18 14:55:47.582554"], ["updated_at", "2018-06-18 14:55:47.582554"]]
7893
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7894
+  (0.1ms) SAVEPOINT active_record_1
7895
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 471 LIMIT $2 [["token", "abc123"], ["LIMIT", 1]]
7896
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["token", "abc123"], ["provider", "mock"], ["app_id", 471], ["created_at", "2018-06-18 14:55:47.586002"], ["updated_at", "2018-06-18 14:55:47.586002"]]
7897
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7898
+ Notifiable::DeviceToken Exists (0.3ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 471 LIMIT $2 [["token", "abc123"], ["LIMIT", 1]]
7899
+  (0.1ms) SAVEPOINT active_record_1
7900
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7902
+  (7.4ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7903
+  (0.2ms) SAVEPOINT active_record_1
7904
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7905
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7906
+  (2.7ms) ROLLBACK
7907
+  (0.1ms) BEGIN
7908
+  (0.1ms) SAVEPOINT active_record_1
7909
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 41"], ["created_at", "2018-06-18 14:55:47.605049"], ["updated_at", "2018-06-18 14:55:47.605049"]]
7910
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7911
+ Notifiable::DeviceToken Exists (0.7ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" IS NULL AND "notifiable_device_tokens"."app_id" = 472 LIMIT $1 [["LIMIT", 1]]
7912
+  (0.2ms) SAVEPOINT active_record_1
7913
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7914
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7915
+  (10.4ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7916
+  (0.2ms) SAVEPOINT active_record_1
7917
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7919
+  (3.7ms) ROLLBACK
7920
+  (0.1ms) BEGIN
7921
+  (0.1ms) SAVEPOINT active_record_1
7922
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 42"], ["created_at", "2018-06-18 14:55:47.629782"], ["updated_at", "2018-06-18 14:55:47.629782"]]
7923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7924
+  (0.1ms) SAVEPOINT active_record_1
7925
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 473 LIMIT $2 [["token", "ABCD25"], ["LIMIT", 1]]
7926
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at", "lonlat") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD25"], ["provider", "mock"], ["app_id", 473], ["created_at", "2018-06-18 14:55:47.633066"], ["updated_at", "2018-06-18 14:55:47.633066"], ["lonlat", "0020000001000010e6c05e8000000000004047800000000000"]]
7927
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7928
+  (0.1ms) SAVEPOINT active_record_1
7929
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7931
+  (7.1ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7932
+  (0.1ms) SAVEPOINT active_record_1
7933
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7935
+  (2.6ms) ROLLBACK
7936
+  (0.1ms) BEGIN
7937
+  (0.1ms) SAVEPOINT active_record_1
7938
+ SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 43"], ["created_at", "2018-06-18 14:55:47.649792"], ["updated_at", "2018-06-18 14:55:47.649792"]]
7939
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7940
+  (0.1ms) SAVEPOINT active_record_1
7941
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 474 LIMIT $2 [["token", "ABCD26"], ["LIMIT", 1]]
7942
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at", "lonlat") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD26"], ["provider", "mock"], ["app_id", 474], ["created_at", "2018-06-18 14:55:47.652849"], ["updated_at", "2018-06-18 14:55:47.652849"], ["lonlat", "0020000001000010e6c05e8000000000004047800000000000"]]
7943
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7944
+  (0.1ms) SAVEPOINT active_record_1
7945
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7946
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7947
+  (8.3ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7948
+  (0.3ms) SAVEPOINT active_record_1
7949
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7951
+  (4.6ms) ROLLBACK
7952
+  (0.2ms) BEGIN
7953
+  (0.3ms) SAVEPOINT active_record_1
7954
+ SQL (0.8ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 44"], ["created_at", "2018-06-18 14:55:47.674600"], ["updated_at", "2018-06-18 14:55:47.674600"]]
7955
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7956
+  (0.2ms) SAVEPOINT active_record_1
7957
+ Notifiable::DeviceToken Exists (0.8ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 475 LIMIT $2 [["token", "ABCD27"], ["LIMIT", 1]]
7958
+ SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["token", "ABCD27"], ["provider", "mock"], ["app_id", 475], ["created_at", "2018-06-18 14:55:47.678988"], ["updated_at", "2018-06-18 14:55:47.678988"]]
7959
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7960
+  (0.1ms) SAVEPOINT active_record_1
7961
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7963
+  (7.3ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7964
+  (0.1ms) SAVEPOINT active_record_1
7965
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7967
+  (2.7ms) ROLLBACK
7968
+  (0.1ms) BEGIN
7969
+  (0.1ms) SAVEPOINT active_record_1
7970
+ SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 45"], ["created_at", "2018-06-18 14:55:47.696270"], ["updated_at", "2018-06-18 14:55:47.696270"]]
7971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7972
+  (0.1ms) SAVEPOINT active_record_1
7973
+ Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = $1 AND "notifiable_device_tokens"."app_id" = 476 LIMIT $2 [["token", "ABCD28"], ["LIMIT", 1]]
7974
+ SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("token", "provider", "app_id", "created_at", "updated_at", "country") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["token", "ABCD28"], ["provider", "mock"], ["app_id", 476], ["created_at", "2018-06-18 14:55:47.699494"], ["updated_at", "2018-06-18 14:55:47.699494"], ["country", "gb"]]
7975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7976
+  (0.1ms) SAVEPOINT active_record_1
7977
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL
7978
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7979
+  (8.1ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_device_tokens", "public"."notifiable_apps", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;
7980
+  (0.2ms) SAVEPOINT active_record_1
7981
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL
7982
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7983
+  (5.6ms) ROLLBACK
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.1
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brooke-Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-29 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -199,6 +199,7 @@ files:
199
199
  - db/migrate/20180302212641_add_last_error_message_to_notifications.rb
200
200
  - db/migrate/201803142135000_add_title_to_notifications.rb
201
201
  - db/migrate/201805292135000_add_language_and_country_to_device_tokens.rb
202
+ - db/migrate/201806182135000_add_thread_id_to_notifications.rb
202
203
  - lib/generators/notifiable/install/install_generator.rb
203
204
  - lib/generators/notifiable/install/templates/initializer.rb
204
205
  - lib/notifiable.rb