(3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateNotifiableApps (20131210115648)  (0.2ms) BEGIN DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/mattbrooke-smith/Development/notifiable-rails/db/migrate/20131210115648_create_notifiable_apps.rb:7)  (5.2ms) CREATE TABLE "notifiable_apps" ("id" serial primary key, "name" character varying, "configuration" text, "created_at" timestamp, "updated_at" timestamp)  SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131210115648"]]  (0.6ms) COMMIT Migrating to CreateNotifiableDeviceTokens (20131210115649)  (0.4ms) BEGIN DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/mattbrooke-smith/Development/notifiable-rails/db/migrate/20131210115649_create_notifiable_device_tokens.rb:12)  (4.3ms) 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.0ms) 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.6ms) COMMIT Migrating to CreateNotifiableNotifications (20131210115650)  (0.3ms) BEGIN DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/mattbrooke-smith/Development/notifiable-rails/db/migrate/20131210115650_create_notifiable_notifications.rb:23)  (4.5ms) 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  (3.4ms) 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.5ms) COMMIT Migrating to AddNameToNotifiableDeviceTokens (20131210115653)  (0.3ms) BEGIN  (2.7ms) 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.4ms) COMMIT Migrating to RemoveIsValidFromNotifiableDeviceTokens (20170108221332)  (0.1ms) BEGIN  (0.9ms) 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.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170108221432"]]  (0.5ms) COMMIT Migrating to AddLatLonToNotifiableDeviceTokens (20170116212641)  (0.1ms) BEGIN SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "postgis"  (3.4ms) 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) ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddLastErrorMessageToNotifications (20180302212641)  (0.3ms) BEGIN  (1.0ms) ALTER TABLE "notifiable_notifications" ADD "last_error_message" text SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20180302212641"]]  (0.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.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_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   (5.2ms) 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  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateNotifiableApps (20131210115648)  (0.2ms) BEGIN DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/mattbrooke-smith/Development/notifiable-rails/db/migrate/20131210115648_create_notifiable_apps.rb:7)  (6.6ms) CREATE TABLE "notifiable_apps" ("id" serial primary key, "name" character varying, "configuration" text, "created_at" timestamp, "updated_at" timestamp)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131210115648"]]  (0.5ms) COMMIT Migrating to CreateNotifiableDeviceTokens (20131210115649)  (0.4ms) BEGIN DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/mattbrooke-smith/Development/notifiable-rails/db/migrate/20131210115649_create_notifiable_device_tokens.rb:12)  (4.5ms) 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.0ms) 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.6ms) COMMIT Migrating to CreateNotifiableNotifications (20131210115650)  (0.3ms) BEGIN DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/mattbrooke-smith/Development/notifiable-rails/db/migrate/20131210115650_create_notifiable_notifications.rb:23)  (3.6ms) 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.4ms) COMMIT Migrating to CreateNotifiableStatuses (20131210115652)  (0.2ms) BEGIN  (2.5ms) 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  (2.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.3ms) ALTER TABLE "notifiable_notifications" ADD "badge_count" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161208221332"]]  (0.4ms) COMMIT Migrating to RemoveIsValidFromNotifiableDeviceTokens (20170108221332)  (0.1ms) BEGIN  (1.5ms) ALTER TABLE "notifiable_device_tokens" DROP "is_valid" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170108221332"]]  (0.4ms) COMMIT Migrating to AddAppIdTokenIndexToNotifiableDeviceTokens (20170108221432)  (0.1ms) BEGIN  (1.0ms) CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_app_id_and_token" ON "notifiable_device_tokens" ("app_id", "token") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170108221432"]]  (0.4ms) COMMIT Migrating to AddLatLonToNotifiableDeviceTokens (20170116212641)  (0.1ms) BEGIN SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "postgis"  (8.0ms) ALTER TABLE "notifiable_device_tokens" ADD "lonlat" geography(POINT,4326) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170116212641"]]  (0.4ms) COMMIT Migrating to AddLastErrorMessageToNotifications (20180302212641)  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "notifiable_notifications" ADD "last_error_message" text SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20180302212641"]]  (0.5ms) COMMIT ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.6ms) 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   (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_device_tokens' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  (3.6ms) 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   (3.4ms) 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  (4.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC