(3.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateNotifiableApps (20131210115648)  (0.2ms) BEGIN  (6.8ms) CREATE TABLE "notifiable_apps" ("id" serial primary key, "name" character varying, "configuration" text, "created_at" timestamp, "updated_at" timestamp)  SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131210115648"]]  (0.6ms) COMMIT Migrating to CreateNotifiableDeviceTokens (20131210115649)  (0.2ms) BEGIN  (4.2ms) CREATE TABLE "notifiable_device_tokens" ("id" serial primary key, "token" character varying, "provider" character varying, "locale" character varying, "is_valid" boolean DEFAULT 't', "user_alias" character varying, "app_id" integer, "created_at" timestamp, "updated_at" timestamp)   (1.2ms) CREATE INDEX "index_notifiable_device_tokens_on_user_alias" ON "notifiable_device_tokens" ("user_alias") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131210115649"]]  (0.4ms) COMMIT Migrating to CreateNotifiableNotifications (20131210115650)  (0.2ms) BEGIN  (4.4ms) CREATE TABLE "notifiable_notifications" ("id" serial primary key, "app_id" integer, "sent_count" integer DEFAULT 0, "gateway_accepted_count" integer DEFAULT 0, "opened_count" integer DEFAULT 0, "message" text, "parameters" text, "sound" character varying, "identifier" character varying, "expiry" timestamp, "content_available" boolean, "mutable_content" boolean, "created_at" timestamp, "updated_at" timestamp) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131210115650"]]  (0.5ms) COMMIT Migrating to CreateNotifiableStatuses (20131210115652)  (0.3ms) BEGIN  (2.9ms) CREATE TABLE "notifiable_statuses" ("id" serial primary key, "notification_id" integer, "device_token_id" integer, "status" integer, "created_at" timestamp) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131210115652"]]  (0.4ms) COMMIT Migrating to AddNameToNotifiableDeviceTokens (20131210115653)  (0.3ms) BEGIN  (0.5ms) ALTER TABLE "notifiable_device_tokens" ADD "name" character varying SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131210115653"]]  (0.5ms) COMMIT Migrating to AddBadgeCountToNotifiableNotifications (20161208221332)  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "notifiable_notifications" ADD "badge_count" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161208221332"]]  (0.5ms) COMMIT Migrating to RemoveIsValidFromNotifiableDeviceTokens (20170108221332)  (0.2ms) BEGIN  (1.6ms) ALTER TABLE "notifiable_device_tokens" DROP "is_valid" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170108221332"]]  (0.5ms) COMMIT Migrating to AddAppIdTokenIndexToNotifiableDeviceTokens (20170108221432)  (0.1ms) BEGIN  (1.1ms) CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_app_id_and_token" ON "notifiable_device_tokens" ("app_id", "token") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170108221432"]]  (0.5ms) COMMIT Migrating to AddLatLonToNotifiableDeviceTokens (20170116212641)  (0.2ms) BEGIN SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "postgis"  (4.0ms) ALTER TABLE "notifiable_device_tokens" ADD "lonlat" geography(POINT,4326) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170116212641"]]  (0.5ms) COMMIT Migrating to AddLastErrorMessageToNotifications (20180302212641)  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "notifiable_notifications" ADD "last_error_message" text SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20180302212641"]]  (0.4ms) COMMIT ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'notifiable_apps' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (3.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'notifiable_device_tokens' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (3.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'notifiable_notifications' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (2.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'notifiable_statuses' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 1"], ["created_at", "2018-03-02 14:39:42.879143"], ["updated_at", "2018-03-02 14:39:42.879143"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 1], ["created_at", "2018-03-02 14:39:42.897901"], ["updated_at", "2018-03-02 14:39:42.897901"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "notifiable_statuses"  (1.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (2.2ms) SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))  (4.3ms) select table_name from information_schema.views where table_schema = 'notifiable-rails-test'  (11.0ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 2"], ["created_at", "2018-03-02 14:39:42.937237"], ["updated_at", "2018-03-02 14:39:42.937237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 2], ["created_at", "2018-03-02 14:39:42.940525"], ["updated_at", "2018-03-02 14:39:42.940525"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 3"], ["created_at", "2018-03-02 14:39:42.954180"], ["updated_at", "2018-03-02 14:39:42.954180"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.8ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD1' AND "notifiable_device_tokens"."app_id" = 3) LIMIT 1 SQL (0.6ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD1"], ["app_id", 3], ["locale", "en"], ["created_at", "2018-03-02 14:39:42.967568"], ["updated_at", "2018-03-02 14:39:42.967568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-03-02 14:39:42.972132"], ["id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 2]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 2], ["device_token_id", 1], ["status", 0], ["created_at", "2018-03-02 14:39:42.970403"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.5ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.8ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 4"], ["created_at", "2018-03-02 14:39:43.020313"], ["updated_at", "2018-03-02 14:39:43.020313"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 4], ["created_at", "2018-03-02 14:39:43.024668"], ["updated_at", "2018-03-02 14:39:43.024668"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 5"], ["created_at", "2018-03-02 14:39:43.028687"], ["updated_at", "2018-03-02 14:39:43.028687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD2' AND "notifiable_device_tokens"."app_id" = 5) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD2"], ["app_id", 5], ["locale", "en"], ["created_at", "2018-03-02 14:39:43.031816"], ["updated_at", "2018-03-02 14:39:43.031816"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:39:43.033852"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 3]] Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 2]] SQL (0.5ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 3], ["device_token_id", 2], ["status", 0], ["created_at", "2018-03-02 14:39:43.033295"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.3ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.9ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 6"], ["created_at", "2018-03-02 14:39:43.062352"], ["updated_at", "2018-03-02 14:39:43.062352"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 6], ["created_at", "2018-03-02 14:39:43.067749"], ["updated_at", "2018-03-02 14:39:43.067749"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 7"], ["created_at", "2018-03-02 14:39:43.071117"], ["updated_at", "2018-03-02 14:39:43.071117"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD3' AND "notifiable_device_tokens"."app_id" = 7) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD3"], ["app_id", 7], ["locale", "en"], ["created_at", "2018-03-02 14:39:43.074775"], ["updated_at", "2018-03-02 14:39:43.074775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:39:43.077123"], ["id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 4]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 3]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 4], ["device_token_id", 3], ["status", 0], ["created_at", "2018-03-02 14:39:43.076484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (11.1ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 8"], ["created_at", "2018-03-02 14:39:43.106088"], ["updated_at", "2018-03-02 14:39:43.106088"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 8], ["created_at", "2018-03-02 14:39:43.110796"], ["updated_at", "2018-03-02 14:39:43.110796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 9"], ["created_at", "2018-03-02 14:39:43.113858"], ["updated_at", "2018-03-02 14:39:43.113858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."app_id" = 9) LIMIT 1 SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD4"], ["app_id", 9], ["locale", "en"], ["created_at", "2018-03-02 14:39:43.117384"], ["updated_at", "2018-03-02 14:39:43.117384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:39:43.119876"], ["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 5]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 4]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 5], ["device_token_id", 4], ["status", 0], ["created_at", "2018-03-02 14:39:43.119208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.6ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.8ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (4.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 10"], ["created_at", "2018-03-02 14:39:43.150312"], ["updated_at", "2018-03-02 14:39:43.150312"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 10], ["created_at", "2018-03-02 14:39:43.154652"], ["updated_at", "2018-03-02 14:39:43.154652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 11"], ["created_at", "2018-03-02 14:39:43.158372"], ["updated_at", "2018-03-02 14:39:43.158372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD5' AND "notifiable_device_tokens"."app_id" = 11) LIMIT 1 SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD5"], ["app_id", 11], ["locale", "en"], ["created_at", "2018-03-02 14:39:43.162127"], ["updated_at", "2018-03-02 14:39:43.162127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:39:43.165012"], ["id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.6ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 6]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 5]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 6], ["device_token_id", 5], ["status", 0], ["created_at", "2018-03-02 14:39:43.164020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (11.9ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (3.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 12"], ["created_at", "2018-03-02 14:39:43.195136"], ["updated_at", "2018-03-02 14:39:43.195136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 12], ["created_at", "2018-03-02 14:39:43.200618"], ["updated_at", "2018-03-02 14:39:43.200618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 13"], ["created_at", "2018-03-02 14:39:43.203739"], ["updated_at", "2018-03-02 14:39:43.203739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD6' AND "notifiable_device_tokens"."app_id" = 13) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD6"], ["app_id", 13], ["locale", "en"], ["created_at", "2018-03-02 14:39:43.207091"], ["updated_at", "2018-03-02 14:39:43.207091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:39:43.209324"], ["id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 7]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 6]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 7], ["device_token_id", 6], ["status", 0], ["created_at", "2018-03-02 14:39:43.208727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.6ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.9ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 14"], ["created_at", "2018-03-02 14:39:43.237649"], ["updated_at", "2018-03-02 14:39:43.237649"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 14], ["created_at", "2018-03-02 14:39:43.240187"], ["updated_at", "2018-03-02 14:39:43.240187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 15"], ["created_at", "2018-03-02 14:39:43.243954"], ["updated_at", "2018-03-02 14:39:43.243954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.7ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD7' AND "notifiable_device_tokens"."app_id" = 15) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["provider", "mock"], ["token", "ABCD7"], ["app_id", 15], ["created_at", "2018-03-02 14:39:43.247426"], ["updated_at", "2018-03-02 14:39:43.247426"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_statuses" ("notification_id", "status", "device_token_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 8], ["status", 0], ["device_token_id", 7], ["created_at", "2018-03-02 14:39:43.249839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.3ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = $1 [["notification_id", 8]] SQL (0.2ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = $1 [["id", 7]] SQL (0.2ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 [["id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (9.6ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 16"], ["created_at", "2018-03-02 14:39:43.287315"], ["updated_at", "2018-03-02 14:39:43.287315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "parameters", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["app_id", 16], ["parameters", "---\n:custom_property: A different message\n"], ["created_at", "2018-03-02 14:39:43.289844"], ["updated_at", "2018-03-02 14:39:43.289844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.5ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 17"], ["created_at", "2018-03-02 14:39:43.311854"], ["updated_at", "2018-03-02 14:39:43.311854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 17], ["created_at", "2018-03-02 14:39:43.313927"], ["updated_at", "2018-03-02 14:39:43.313927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (3.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 1"], ["created_at", "2018-03-02 14:40:09.865157"], ["updated_at", "2018-03-02 14:40:09.865157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 18], ["created_at", "2018-03-02 14:40:09.873640"], ["updated_at", "2018-03-02 14:40:09.873640"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 2"], ["created_at", "2018-03-02 14:40:09.897685"], ["updated_at", "2018-03-02 14:40:09.897685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (1.3ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD1' AND "notifiable_device_tokens"."app_id" = 19) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["provider", "mock"], ["token", "ABCD1"], ["app_id", 19], ["created_at", "2018-03-02 14:40:09.910168"], ["updated_at", "2018-03-02 14:40:09.910168"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_statuses" ("notification_id", "status", "device_token_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 11], ["status", 0], ["device_token_id", 8], ["created_at", "2018-03-02 14:40:09.913863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.3ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = $1 [["notification_id", 11]] SQL (0.2ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = $1 [["id", 8]] SQL (0.3ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 [["id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.5ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (1.6ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'notifiable-rails-test'  (12.6ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 3"], ["created_at", "2018-03-02 14:40:09.954061"], ["updated_at", "2018-03-02 14:40:09.954061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 20], ["created_at", "2018-03-02 14:40:09.956450"], ["updated_at", "2018-03-02 14:40:09.956450"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "notifiable_notifications" SET "last_error_message" = $1, "updated_at" = $2 WHERE "notifiable_notifications"."id" = $3 [["last_error_message", "SSL error occured"], ["updated_at", "2018-03-02 14:40:09.958983"], ["id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (9.9ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 4"], ["created_at", "2018-03-02 14:40:09.985361"], ["updated_at", "2018-03-02 14:40:09.985361"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 21], ["created_at", "2018-03-02 14:40:09.988803"], ["updated_at", "2018-03-02 14:40:09.988803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (11.6ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 5"], ["created_at", "2018-03-02 14:40:10.014876"], ["updated_at", "2018-03-02 14:40:10.014876"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 22], ["created_at", "2018-03-02 14:40:10.020539"], ["updated_at", "2018-03-02 14:40:10.020539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 6"], ["created_at", "2018-03-02 14:40:10.023677"], ["updated_at", "2018-03-02 14:40:10.023677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD2' AND "notifiable_device_tokens"."app_id" = 23) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD2"], ["app_id", 23], ["locale", "en"], ["created_at", "2018-03-02 14:40:10.027404"], ["updated_at", "2018-03-02 14:40:10.027404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 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-03-02 14:40:10.030454"], ["id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.2ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 14]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 9]] SQL (0.3ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 14], ["device_token_id", 9], ["status", 0], ["created_at", "2018-03-02 14:40:10.029336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.5ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.7ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (3.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 7"], ["created_at", "2018-03-02 14:40:10.063760"], ["updated_at", "2018-03-02 14:40:10.063760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 24], ["created_at", "2018-03-02 14:40:10.068331"], ["updated_at", "2018-03-02 14:40:10.068331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 8"], ["created_at", "2018-03-02 14:40:10.071571"], ["updated_at", "2018-03-02 14:40:10.071571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD3' AND "notifiable_device_tokens"."app_id" = 25) LIMIT 1 SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD3"], ["app_id", 25], ["locale", "en"], ["created_at", "2018-03-02 14:40:10.075348"], ["updated_at", "2018-03-02 14:40:10.075348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:10.077778"], ["id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 15]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 10]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 15], ["device_token_id", 10], ["status", 0], ["created_at", "2018-03-02 14:40:10.077128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (11.6ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 9"], ["created_at", "2018-03-02 14:40:10.108387"], ["updated_at", "2018-03-02 14:40:10.108387"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 26], ["created_at", "2018-03-02 14:40:10.112834"], ["updated_at", "2018-03-02 14:40:10.112834"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 10"], ["created_at", "2018-03-02 14:40:10.116400"], ["updated_at", "2018-03-02 14:40:10.116400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."app_id" = 27) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD4"], ["app_id", 27], ["locale", "en"], ["created_at", "2018-03-02 14:40:10.120022"], ["updated_at", "2018-03-02 14:40:10.120022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:10.122488"], ["id", 16]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 16]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 11]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 16], ["device_token_id", 11], ["status", 0], ["created_at", "2018-03-02 14:40:10.121534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.4ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (11.2ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL  (4.1ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 11"], ["created_at", "2018-03-02 14:40:10.152542"], ["updated_at", "2018-03-02 14:40:10.152542"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 28], ["created_at", "2018-03-02 14:40:10.157008"], ["updated_at", "2018-03-02 14:40:10.157008"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 12"], ["created_at", "2018-03-02 14:40:10.161000"], ["updated_at", "2018-03-02 14:40:10.161000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD5' AND "notifiable_device_tokens"."app_id" = 29) LIMIT 1 SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD5"], ["app_id", 29], ["locale", "en"], ["created_at", "2018-03-02 14:40:10.164797"], ["updated_at", "2018-03-02 14:40:10.164797"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:10.167725"], ["id", 17]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 17]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 12]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 17], ["device_token_id", 12], ["status", 0], ["created_at", "2018-03-02 14:40:10.167037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.3ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 13"], ["created_at", "2018-03-02 14:40:10.195489"], ["updated_at", "2018-03-02 14:40:10.195489"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 30], ["created_at", "2018-03-02 14:40:10.199787"], ["updated_at", "2018-03-02 14:40:10.199787"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 14"], ["created_at", "2018-03-02 14:40:10.203059"], ["updated_at", "2018-03-02 14:40:10.203059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD6' AND "notifiable_device_tokens"."app_id" = 31) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD6"], ["app_id", 31], ["locale", "en"], ["created_at", "2018-03-02 14:40:10.206902"], ["updated_at", "2018-03-02 14:40:10.206902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:10.209123"], ["id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 18]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 13]] SQL (0.6ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 18], ["device_token_id", 13], ["status", 0], ["created_at", "2018-03-02 14:40:10.208497"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.4ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.7ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 15"], ["created_at", "2018-03-02 14:40:10.245171"], ["updated_at", "2018-03-02 14:40:10.245171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 32], ["created_at", "2018-03-02 14:40:10.248834"], ["updated_at", "2018-03-02 14:40:10.248834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 16"], ["created_at", "2018-03-02 14:40:10.251628"], ["updated_at", "2018-03-02 14:40:10.251628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD7' AND "notifiable_device_tokens"."app_id" = 33) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD7"], ["app_id", 33], ["locale", "en"], ["created_at", "2018-03-02 14:40:10.255008"], ["updated_at", "2018-03-02 14:40:10.255008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:10.256990"], ["id", 19]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 19]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 14]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 19], ["device_token_id", 14], ["status", 0], ["created_at", "2018-03-02 14:40:10.256411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (12.4ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 17"], ["created_at", "2018-03-02 14:40:10.284241"], ["updated_at", "2018-03-02 14:40:10.284241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "parameters", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["app_id", 34], ["parameters", "---\n:custom_property: A different message\n"], ["created_at", "2018-03-02 14:40:10.286972"], ["updated_at", "2018-03-02 14:40:10.286972"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.7ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 1"], ["created_at", "2018-03-02 14:40:34.821416"], ["updated_at", "2018-03-02 14:40:34.821416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_notifications" ("app_id", "parameters", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["app_id", 35], ["parameters", "---\n:custom_property: A different message\n"], ["created_at", "2018-03-02 14:40:34.831180"], ["updated_at", "2018-03-02 14:40:34.831180"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (1.7ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.8ms) select table_name from information_schema.views where table_schema = 'notifiable-rails-test'  (14.6ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 2"], ["created_at", "2018-03-02 14:40:34.866528"], ["updated_at", "2018-03-02 14:40:34.866528"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 36], ["created_at", "2018-03-02 14:40:34.869734"], ["updated_at", "2018-03-02 14:40:34.869734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (13.9ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 3"], ["created_at", "2018-03-02 14:40:34.898866"], ["updated_at", "2018-03-02 14:40:34.898866"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 37], ["created_at", "2018-03-02 14:40:34.904161"], ["updated_at", "2018-03-02 14:40:34.904161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 4"], ["created_at", "2018-03-02 14:40:34.916154"], ["updated_at", "2018-03-02 14:40:34.916154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD1' AND "notifiable_device_tokens"."app_id" = 38) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD1"], ["app_id", 38], ["locale", "en"], ["created_at", "2018-03-02 14:40:34.924921"], ["updated_at", "2018-03-02 14:40:34.924921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:34.927044"], ["id", 23]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 23]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 15]] SQL (0.3ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 23], ["device_token_id", 15], ["status", 0], ["created_at", "2018-03-02 14:40:34.926452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (11.2ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 5"], ["created_at", "2018-03-02 14:40:34.966783"], ["updated_at", "2018-03-02 14:40:34.966783"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 39], ["created_at", "2018-03-02 14:40:34.971373"], ["updated_at", "2018-03-02 14:40:34.971373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 6"], ["created_at", "2018-03-02 14:40:34.974271"], ["updated_at", "2018-03-02 14:40:34.974271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD2' AND "notifiable_device_tokens"."app_id" = 40) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD2"], ["app_id", 40], ["locale", "en"], ["created_at", "2018-03-02 14:40:34.977772"], ["updated_at", "2018-03-02 14:40:34.977772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:34.979774"], ["id", 24]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 24]] Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 16]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 24], ["device_token_id", 16], ["status", 0], ["created_at", "2018-03-02 14:40:34.979210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.5ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (14.1ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 7"], ["created_at", "2018-03-02 14:40:35.012337"], ["updated_at", "2018-03-02 14:40:35.012337"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 41], ["created_at", "2018-03-02 14:40:35.017563"], ["updated_at", "2018-03-02 14:40:35.017563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 8"], ["created_at", "2018-03-02 14:40:35.020838"], ["updated_at", "2018-03-02 14:40:35.020838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD3' AND "notifiable_device_tokens"."app_id" = 42) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD3"], ["app_id", 42], ["locale", "en"], ["created_at", "2018-03-02 14:40:35.024095"], ["updated_at", "2018-03-02 14:40:35.024095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:35.026573"], ["id", 25]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 25]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 17]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 25], ["device_token_id", 17], ["status", 0], ["created_at", "2018-03-02 14:40:35.025707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (12.9ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 9"], ["created_at", "2018-03-02 14:40:35.056845"], ["updated_at", "2018-03-02 14:40:35.056845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 43], ["created_at", "2018-03-02 14:40:35.061072"], ["updated_at", "2018-03-02 14:40:35.061072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 10"], ["created_at", "2018-03-02 14:40:35.063200"], ["updated_at", "2018-03-02 14:40:35.063200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."app_id" = 44) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD4"], ["app_id", 44], ["locale", "en"], ["created_at", "2018-03-02 14:40:35.066136"], ["updated_at", "2018-03-02 14:40:35.066136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:35.068613"], ["id", 26]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 26]] Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 18]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 26], ["device_token_id", 18], ["status", 0], ["created_at", "2018-03-02 14:40:35.068030"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.4ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.6ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (5.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 11"], ["created_at", "2018-03-02 14:40:35.099134"], ["updated_at", "2018-03-02 14:40:35.099134"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 45], ["created_at", "2018-03-02 14:40:35.105934"], ["updated_at", "2018-03-02 14:40:35.105934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 12"], ["created_at", "2018-03-02 14:40:35.109115"], ["updated_at", "2018-03-02 14:40:35.109115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD5' AND "notifiable_device_tokens"."app_id" = 46) LIMIT 1 SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD5"], ["app_id", 46], ["locale", "en"], ["created_at", "2018-03-02 14:40:35.112491"], ["updated_at", "2018-03-02 14:40:35.112491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:35.115259"], ["id", 27]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 27]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 19]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 27], ["device_token_id", 19], ["status", 0], ["created_at", "2018-03-02 14:40:35.114279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.3ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.3ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 13"], ["created_at", "2018-03-02 14:40:35.143197"], ["updated_at", "2018-03-02 14:40:35.143197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 47], ["created_at", "2018-03-02 14:40:35.148019"], ["updated_at", "2018-03-02 14:40:35.148019"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 14"], ["created_at", "2018-03-02 14:40:35.151892"], ["updated_at", "2018-03-02 14:40:35.151892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD6' AND "notifiable_device_tokens"."app_id" = 48) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD6"], ["app_id", 48], ["locale", "en"], ["created_at", "2018-03-02 14:40:35.155646"], ["updated_at", "2018-03-02 14:40:35.155646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:40:35.157920"], ["id", 28]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 28]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 20]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 28], ["device_token_id", 20], ["status", 0], ["created_at", "2018-03-02 14:40:35.157313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.9ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 15"], ["created_at", "2018-03-02 14:40:35.186957"], ["updated_at", "2018-03-02 14:40:35.186957"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 49], ["created_at", "2018-03-02 14:40:35.189341"], ["updated_at", "2018-03-02 14:40:35.189341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "notifiable_notifications" SET "last_error_message" = $1, "updated_at" = $2 WHERE "notifiable_notifications"."id" = $3 [["last_error_message", "SSL error occured"], ["updated_at", "2018-03-02 14:40:35.191547"], ["id", 29]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (12.6ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (4.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 16"], ["created_at", "2018-03-02 14:40:35.224749"], ["updated_at", "2018-03-02 14:40:35.224749"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 50], ["created_at", "2018-03-02 14:40:35.227741"], ["updated_at", "2018-03-02 14:40:35.227741"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 17"], ["created_at", "2018-03-02 14:40:35.230929"], ["updated_at", "2018-03-02 14:40:35.230929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD7' AND "notifiable_device_tokens"."app_id" = 51) LIMIT 1 SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["provider", "mock"], ["token", "ABCD7"], ["app_id", 51], ["created_at", "2018-03-02 14:40:35.233727"], ["updated_at", "2018-03-02 14:40:35.233727"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_statuses" ("notification_id", "status", "device_token_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 30], ["status", 0], ["device_token_id", 21], ["created_at", "2018-03-02 14:40:35.236071"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.3ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = $1 [["notification_id", 30]] SQL (0.2ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = $1 [["id", 21]] SQL (0.2ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 [["id", 30]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (9.9ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 1"], ["created_at", "2018-03-02 14:41:01.876765"], ["updated_at", "2018-03-02 14:41:01.876765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 52], ["created_at", "2018-03-02 14:41:01.901276"], ["updated_at", "2018-03-02 14:41:01.901276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 2"], ["created_at", "2018-03-02 14:41:01.919649"], ["updated_at", "2018-03-02 14:41:01.919649"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (1.3ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD1' AND "notifiable_device_tokens"."app_id" = 53) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD1"], ["app_id", 53], ["locale", "en"], ["created_at", "2018-03-02 14:41:01.932658"], ["updated_at", "2018-03-02 14:41:01.932658"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 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-03-02 14:41:01.935553"], ["id", 31]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 31]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 22]] SQL (0.3ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 31], ["device_token_id", 22], ["status", 0], ["created_at", "2018-03-02 14:41:01.934696"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.6ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.5ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (1.5ms)  SELECT schemaname || '.' || tablename FROM pg_tables WHERE tablename !~ '_prt_' AND tablename <> 'schema_migrations' AND schemaname = ANY (current_schemas(false))   (1.3ms) select table_name from information_schema.views where table_schema = 'notifiable-rails-test'  (16.8ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 3"], ["created_at", "2018-03-02 14:41:01.990773"], ["updated_at", "2018-03-02 14:41:01.990773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 54], ["created_at", "2018-03-02 14:41:01.994792"], ["updated_at", "2018-03-02 14:41:01.994792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 4"], ["created_at", "2018-03-02 14:41:01.997281"], ["updated_at", "2018-03-02 14:41:01.997281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD2' AND "notifiable_device_tokens"."app_id" = 55) LIMIT 1 SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD2"], ["app_id", 55], ["locale", "en"], ["created_at", "2018-03-02 14:41:02.001173"], ["updated_at", "2018-03-02 14:41:02.001173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:41:02.003764"], ["id", 32]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 32]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 23]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 32], ["device_token_id", 23], ["status", 0], ["created_at", "2018-03-02 14:41:02.003016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.4ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.4ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 5"], ["created_at", "2018-03-02 14:41:02.033185"], ["updated_at", "2018-03-02 14:41:02.033185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 56], ["created_at", "2018-03-02 14:41:02.037825"], ["updated_at", "2018-03-02 14:41:02.037825"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 6"], ["created_at", "2018-03-02 14:41:02.041358"], ["updated_at", "2018-03-02 14:41:02.041358"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.6ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD3' AND "notifiable_device_tokens"."app_id" = 57) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD3"], ["app_id", 57], ["locale", "en"], ["created_at", "2018-03-02 14:41:02.045612"], ["updated_at", "2018-03-02 14:41:02.045612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:41:02.048514"], ["id", 33]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.4ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 33]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 24]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 33], ["device_token_id", 24], ["status", 0], ["created_at", "2018-03-02 14:41:02.047384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.4ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (10.7ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 7"], ["created_at", "2018-03-02 14:41:02.078566"], ["updated_at", "2018-03-02 14:41:02.078566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 58], ["created_at", "2018-03-02 14:41:02.083019"], ["updated_at", "2018-03-02 14:41:02.083019"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 8"], ["created_at", "2018-03-02 14:41:02.086917"], ["updated_at", "2018-03-02 14:41:02.086917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."app_id" = 59) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD4"], ["app_id", 59], ["locale", "en"], ["created_at", "2018-03-02 14:41:02.090601"], ["updated_at", "2018-03-02 14:41:02.090601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 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-03-02 14:41:02.092862"], ["id", 34]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 34]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 25]] SQL (0.5ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 34], ["device_token_id", 25], ["status", 0], ["created_at", "2018-03-02 14:41:02.092165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (11.0ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 9"], ["created_at", "2018-03-02 14:41:02.121164"], ["updated_at", "2018-03-02 14:41:02.121164"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 60], ["created_at", "2018-03-02 14:41:02.126313"], ["updated_at", "2018-03-02 14:41:02.126313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 10"], ["created_at", "2018-03-02 14:41:02.130251"], ["updated_at", "2018-03-02 14:41:02.130251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD5' AND "notifiable_device_tokens"."app_id" = 61) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD5"], ["app_id", 61], ["locale", "en"], ["created_at", "2018-03-02 14:41:02.133936"], ["updated_at", "2018-03-02 14:41:02.133936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:41:02.136587"], ["id", 35]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 35]] Notifiable::DeviceToken Load (0.3ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 26]] SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 35], ["device_token_id", 26], ["status", 0], ["created_at", "2018-03-02 14:41:02.135635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.3ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (13.7ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("configuration", "name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["configuration", "---\n:mock: {}\n:configurable_mock:\n :use_sandbox: \n:save_notification_statuses: true\n"], ["name", "App 11"], ["created_at", "2018-03-02 14:41:02.167494"], ["updated_at", "2018-03-02 14:41:02.167494"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 62], ["created_at", "2018-03-02 14:41:02.172433"], ["updated_at", "2018-03-02 14:41:02.172433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 12"], ["created_at", "2018-03-02 14:41:02.175151"], ["updated_at", "2018-03-02 14:41:02.175151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD6' AND "notifiable_device_tokens"."app_id" = 63) LIMIT 1 SQL (0.4ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "locale", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["provider", "mock"], ["token", "ABCD6"], ["app_id", 63], ["locale", "en"], ["created_at", "2018-03-02 14:41:02.178354"], ["updated_at", "2018-03-02 14:41:02.178354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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-03-02 14:41:02.180632"], ["id", 36]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::Notification Load (0.3ms) SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 LIMIT 1 [["id", 36]] Notifiable::DeviceToken Load (0.2ms) SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = $1 LIMIT 1 [["id", 27]] SQL (0.3ms) INSERT INTO "notifiable_statuses" ("notification_id", "device_token_id", "status", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 36], ["device_token_id", 27], ["status", 0], ["created_at", "2018-03-02 14:41:02.180038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (15.3ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (2.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 13"], ["created_at", "2018-03-02 14:41:02.212332"], ["updated_at", "2018-03-02 14:41:02.212332"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 64], ["created_at", "2018-03-02 14:41:02.216114"], ["updated_at", "2018-03-02 14:41:02.216114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (16.5ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.2ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (3.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 14"], ["created_at", "2018-03-02 14:41:02.245338"], ["updated_at", "2018-03-02 14:41:02.245338"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "notifiable_notifications" ("app_id", "parameters", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["app_id", 65], ["parameters", "---\n:custom_property: A different message\n"], ["created_at", "2018-03-02 14:41:02.248994"], ["updated_at", "2018-03-02 14:41:02.248994"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (14.0ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (2.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 15"], ["created_at", "2018-03-02 14:41:02.273823"], ["updated_at", "2018-03-02 14:41:02.273823"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 66], ["created_at", "2018-03-02 14:41:02.277498"], ["updated_at", "2018-03-02 14:41:02.277498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "notifiable_notifications" SET "last_error_message" = $1, "updated_at" = $2 WHERE "notifiable_notifications"."id" = $3 [["last_error_message", "SSL error occured"], ["updated_at", "2018-03-02 14:41:02.279607"], ["id", 39]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (11.5ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (2.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 16"], ["created_at", "2018-03-02 14:41:02.307898"], ["updated_at", "2018-03-02 14:41:02.307898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "notifiable_notifications" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 67], ["created_at", "2018-03-02 14:41:02.310170"], ["updated_at", "2018-03-02 14:41:02.310170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "notifiable_apps" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "App 17"], ["created_at", "2018-03-02 14:41:02.312942"], ["updated_at", "2018-03-02 14:41:02.312942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::DeviceToken Exists (0.5ms) SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD7' AND "notifiable_device_tokens"."app_id" = 68) LIMIT 1 SQL (0.3ms) INSERT INTO "notifiable_device_tokens" ("provider", "token", "app_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["provider", "mock"], ["token", "ABCD7"], ["app_id", 68], ["created_at", "2018-03-02 14:41:02.315806"], ["updated_at", "2018-03-02 14:41:02.315806"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "notifiable_statuses" ("notification_id", "status", "device_token_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["notification_id", 40], ["status", 0], ["device_token_id", 28], ["created_at", "2018-03-02 14:41:02.318511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Notifiable::NotificationStatus Load (0.2ms) SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = $1 [["notification_id", 40]] SQL (0.2ms) DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = $1 [["id", 28]] SQL (0.2ms) DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = $1 [["id", 40]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "notifiable_statuses"  (0.3ms) ALTER TABLE "spatial_ref_sys" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" DISABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" DISABLE TRIGGER ALL  (13.2ms) TRUNCATE TABLE "public"."spatial_ref_sys", "public"."notifiable_apps", "public"."notifiable_device_tokens", "public"."notifiable_notifications", "public"."notifiable_statuses" RESTART IDENTITY CASCADE;  (0.5ms) ALTER TABLE "spatial_ref_sys" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_apps" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_device_tokens" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_notifications" ENABLE TRIGGER ALL;ALTER TABLE "notifiable_statuses" ENABLE TRIGGER ALL  (4.1ms) ROLLBACK