notifiable-rails 0.26.0 → 0.26.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20180302212641_add_last_error_message_to_notifications.rb +5 -0
- data/lib/notifiable/notification.rb +9 -3
- data/lib/notifiable/version.rb +1 -1
- data/spec/model/notification_spec.rb +16 -2
- data/spec/test_app/config/database.yml +0 -2
- data/spec/test_app/db/schema.rb +2 -1
- data/spec/test_app/log/development.log +142 -260
- data/spec/test_app/log/test.log +884 -40774
- metadata +31 -34
- data/spec/test_app/db/development.sqlite3 +0 -0
- data/spec/test_app/db/test.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96d2eea79d8e0d96946ba2a72593dac2281074a5
|
4
|
+
data.tar.gz: 8b309f03bfc74a78f772a5e2736f492ceced0c8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd59ee70d70bed9ea3715c9f8d42bc657ecc7f84644ed0d7f5e2fd1662ef654f2e3e0c2b95f34b603a4909c6c844b09bb3c1d4f29153bdfdef6d4c9dbf37edfd
|
7
|
+
data.tar.gz: 899e8497825a01fcb378e9171734d0a60061cd6fdf836f8784618b1efe2044306d526f4ecf372787381ee926db5db2012f22fc602f1ca11f98c287f2bf6137f1
|
@@ -8,9 +8,15 @@ module Notifiable
|
|
8
8
|
|
9
9
|
has_many :notification_statuses, :class_name => 'Notifiable::NotificationStatus', :dependent => :destroy
|
10
10
|
|
11
|
-
def batch
|
12
|
-
|
13
|
-
|
11
|
+
def batch
|
12
|
+
begin
|
13
|
+
yield(self)
|
14
|
+
update(last_error_message: nil)
|
15
|
+
rescue Exception => e
|
16
|
+
update(last_error_message: e.message)
|
17
|
+
ensure
|
18
|
+
close
|
19
|
+
end
|
14
20
|
end
|
15
21
|
|
16
22
|
def add_device_token(d)
|
data/lib/notifiable/version.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe Notifiable::Notification do
|
3
|
+
describe Notifiable::Notification do
|
4
|
+
subject { create(:notification) }
|
5
|
+
|
4
6
|
describe "#add_device_token" do
|
5
7
|
context "single token" do
|
6
8
|
subject(:notification) { create(:notification, app: create(:app, save_notification_statuses: true)) }
|
@@ -40,7 +42,6 @@ describe Notifiable::Notification do
|
|
40
42
|
end
|
41
43
|
|
42
44
|
describe "#destroy" do
|
43
|
-
subject { create(:notification) }
|
44
45
|
let!(:s) { create(:notification_status, :notification => subject) }
|
45
46
|
|
46
47
|
before(:each) { subject.destroy }
|
@@ -48,4 +49,17 @@ describe Notifiable::Notification do
|
|
48
49
|
it { expect(Notifiable::NotificationStatus.count).to eq 0 }
|
49
50
|
end
|
50
51
|
|
52
|
+
describe "#batch" do
|
53
|
+
|
54
|
+
context 'throws exception' do
|
55
|
+
before(:each) do
|
56
|
+
subject.batch do
|
57
|
+
raise 'SSL error occured'
|
58
|
+
end
|
59
|
+
end
|
60
|
+
it { expect(subject.last_error_message).to eq 'SSL error occured' }
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
51
65
|
end
|
data/spec/test_app/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20180302212641) do
|
15
15
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
17
17
|
enable_extension "plpgsql"
|
@@ -54,6 +54,7 @@ ActiveRecord::Schema.define(version: 20170116212641) do
|
|
54
54
|
t.datetime "created_at"
|
55
55
|
t.datetime "updated_at"
|
56
56
|
t.integer "badge_count"
|
57
|
+
t.text "last_error_message"
|
57
58
|
end
|
58
59
|
|
59
60
|
create_table "notifiable_statuses", force: :cascade do |t|
|
@@ -1,284 +1,172 @@
|
|
1
|
-
[1m[36m (
|
2
|
-
[1m[35m (
|
3
|
-
[1m[
|
4
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1
|
+
[1m[36m (3.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
+
[1m[35m (1.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5
4
|
Migrating to CreateNotifiableApps (20131210115648)
|
6
|
-
[1m[
|
7
|
-
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/
|
8
|
-
[1m[
|
9
|
-
[1m[
|
10
|
-
[1m[
|
5
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6
|
+
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)
|
7
|
+
[1m[36m (5.2ms)[0m [1mCREATE TABLE "notifiable_apps" ("id" serial primary key, "name" character varying, "configuration" text, "created_at" timestamp, "updated_at" timestamp) [0m
|
8
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131210115648"]]
|
9
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
11
10
|
Migrating to CreateNotifiableDeviceTokens (20131210115649)
|
12
|
-
[1m[
|
13
|
-
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/
|
14
|
-
[1m[
|
15
|
-
[1m[
|
16
|
-
[1m[
|
17
|
-
|
18
|
-
WHERE name='index_notifiable_device_tokens_on_token' AND type='index'
|
19
|
-
UNION ALL
|
20
|
-
SELECT sql
|
21
|
-
FROM sqlite_temp_master
|
22
|
-
WHERE name='index_notifiable_device_tokens_on_token' AND type='index'
|
23
|
-
|
24
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_notifiable_device_tokens_on_user_id" ON "notifiable_device_tokens" ("user_id")[0m
|
25
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115649"]]
|
26
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
11
|
+
[1m[35m (0.4ms)[0m BEGIN
|
12
|
+
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)
|
13
|
+
[1m[36m (4.3ms)[0m [1mCREATE 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) [0m
|
14
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_notifiable_device_tokens_on_user_alias" ON "notifiable_device_tokens" ("user_alias")
|
15
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131210115649"]]
|
16
|
+
[1m[35m (0.6ms)[0m COMMIT
|
27
17
|
Migrating to CreateNotifiableNotifications (20131210115650)
|
28
|
-
[1m[
|
29
|
-
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/
|
30
|
-
[1m[
|
31
|
-
[1m[
|
32
|
-
[1m[
|
33
|
-
Migrating to CreateNotifiableLocalizedNotifications (20131210115651)
|
34
|
-
[1m[35m (0.0ms)[0m begin transaction
|
35
|
-
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/matt/Documents/notifiable-rails/db/migrate/20131210115651_create_notifiable_localized_notifications.rb:18)
|
36
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "notifiable_localized_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message" text, "params" text, "locale" varchar, "notification_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
37
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115651"]]
|
38
|
-
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
18
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
19
|
+
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)
|
20
|
+
[1m[35m (4.5ms)[0m 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)
|
21
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131210115650"]]
|
22
|
+
[1m[35m (0.5ms)[0m COMMIT
|
39
23
|
Migrating to CreateNotifiableStatuses (20131210115652)
|
40
|
-
[1m[
|
41
|
-
[1m[
|
42
|
-
[1m[
|
43
|
-
[1m[
|
24
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
25
|
+
[1m[35m (3.4ms)[0m CREATE TABLE "notifiable_statuses" ("id" serial primary key, "notification_id" integer, "device_token_id" integer, "status" integer, "created_at" timestamp)
|
26
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131210115652"]]
|
27
|
+
[1m[35m (0.5ms)[0m COMMIT
|
44
28
|
Migrating to AddNameToNotifiableDeviceTokens (20131210115653)
|
45
|
-
[1m[
|
46
|
-
[1m[
|
47
|
-
[1m[
|
48
|
-
[1m[
|
49
|
-
Migrating to
|
50
|
-
[1m[
|
51
|
-
|
52
|
-
[1m[
|
53
|
-
[1m[35m (0.
|
54
|
-
|
29
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
30
|
+
[1m[35m (2.7ms)[0m ALTER TABLE "notifiable_device_tokens" ADD "name" character varying
|
31
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131210115653"]]
|
32
|
+
[1m[35m (0.5ms)[0m COMMIT
|
33
|
+
Migrating to AddBadgeCountToNotifiableNotifications (20161208221332)
|
34
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
35
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "notifiable_notifications" ADD "badge_count" integer
|
36
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161208221332"]]
|
37
|
+
[1m[35m (0.4ms)[0m COMMIT
|
38
|
+
Migrating to RemoveIsValidFromNotifiableDeviceTokens (20170108221332)
|
39
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "notifiable_device_tokens" DROP "is_valid"
|
41
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170108221332"]]
|
42
|
+
[1m[35m (0.5ms)[0m COMMIT
|
43
|
+
Migrating to AddAppIdTokenIndexToNotifiableDeviceTokens (20170108221432)
|
44
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
45
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_app_id_and_token" ON "notifiable_device_tokens" ("app_id", "token")
|
46
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170108221432"]]
|
47
|
+
[1m[35m (0.5ms)[0m COMMIT
|
48
|
+
Migrating to AddLatLonToNotifiableDeviceTokens (20170116212641)
|
49
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
50
|
+
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "postgis"
|
51
|
+
[1m[36m (3.4ms)[0m [1mALTER TABLE "notifiable_device_tokens" ADD "lonlat" geography(POINT,4326)[0m
|
52
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170116212641"]]
|
53
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
54
|
+
Migrating to AddLastErrorMessageToNotifications (20180302212641)
|
55
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
56
|
+
Migrating to AddLastErrorMessageToNotifications (20180302212641)
|
57
|
+
[1m[35m (0.3ms)[0m BEGIN
|
58
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "notifiable_notifications" ADD "last_error_message" text[0m
|
59
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20180302212641"]]
|
60
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
55
61
|
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
[1m[35m (0.1ms)[0m SELECT sql
|
68
|
-
FROM sqlite_master
|
69
|
-
WHERE name='index_notifiable_device_tokens_on_token' AND type='index'
|
70
|
-
UNION ALL
|
71
|
-
SELECT sql
|
72
|
-
FROM sqlite_temp_master
|
73
|
-
WHERE name='index_notifiable_device_tokens_on_token' AND type='index'
|
74
|
-
|
75
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_notifiable_device_tokens_on_user_id" ON "notifiable_device_tokens" ("user_id")[0m
|
76
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115649"]]
|
77
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
78
|
-
Migrating to CreateNotifiableNotifications (20131210115650)
|
79
|
-
[1m[35m (0.0ms)[0m begin transaction
|
80
|
-
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/matt/Documents/notifiable-rails/db/migrate/20131210115650_create_notifiable_notifications.rb:12)
|
81
|
-
[1m[36m (0.4ms)[0m [1mCREATE TABLE "notifiable_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "app_id" integer, "sent_count" integer DEFAULT 0, "gateway_accepted_count" integer DEFAULT 0, "opened_count" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime) [0m
|
82
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115650"]]
|
83
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
84
|
-
Migrating to CreateNotifiableLocalizedNotifications (20131210115651)
|
85
|
-
[1m[35m (0.0ms)[0m begin transaction
|
86
|
-
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/matt/Documents/notifiable-rails/db/migrate/20131210115651_create_notifiable_localized_notifications.rb:18)
|
87
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "notifiable_localized_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message" text, "params" text, "locale" varchar, "notification_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
88
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115651"]]
|
89
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
90
|
-
Migrating to CreateNotifiableStatuses (20131210115652)
|
91
|
-
[1m[35m (0.0ms)[0m begin transaction
|
92
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "notifiable_statuses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "localized_notification_id" integer, "device_token_id" integer, "status" integer, "created_at" datetime) [0m
|
93
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115652"]]
|
94
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
95
|
-
Migrating to AddNameToNotifiableDeviceTokens (20131210115653)
|
96
|
-
[1m[35m (0.0ms)[0m begin transaction
|
97
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "notifiable_device_tokens" ADD "name" varchar[0m
|
98
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115653"]]
|
99
|
-
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
100
|
-
Migrating to AddPropertiesToLocalizedNotifications (20131210115654)
|
101
|
-
[1m[35m (0.0ms)[0m begin transaction
|
102
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "notifiable_localized_notifications" ADD "props" text[0m
|
103
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115654"]]
|
104
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
105
|
-
Migrating to CreateUsers (20131210115660)
|
106
|
-
[1m[35m (0.1ms)[0m begin transaction
|
107
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL) [0m
|
108
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115660"]]
|
109
|
-
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
110
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
111
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
112
|
-
FROM sqlite_master
|
113
|
-
WHERE name='index_notifiable_device_tokens_on_user_id' AND type='index'
|
114
|
-
UNION ALL
|
115
|
-
SELECT sql
|
116
|
-
FROM sqlite_temp_master
|
117
|
-
WHERE name='index_notifiable_device_tokens_on_user_id' AND type='index'
|
62
|
+
[1m[36m (3.9ms)[0m [1mSELECT 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
|
63
|
+
FROM pg_constraint c
|
64
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
65
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
66
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
67
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
68
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
69
|
+
WHERE c.contype = 'f'
|
70
|
+
AND t1.relname = 'notifiable_apps'
|
71
|
+
AND t3.nspname = ANY (current_schemas(false))
|
72
|
+
ORDER BY c.conname
|
118
73
|
[0m
|
119
|
-
[1m[35m (
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
74
|
+
[1m[35m (3.1ms)[0m 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
|
75
|
+
FROM pg_constraint c
|
76
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
77
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
78
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
79
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
80
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
81
|
+
WHERE c.contype = 'f'
|
82
|
+
AND t1.relname = 'notifiable_device_tokens'
|
83
|
+
AND t3.nspname = ANY (current_schemas(false))
|
84
|
+
ORDER BY c.conname
|
126
85
|
|
127
|
-
[1m[36m (
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
139
|
-
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/matt/Documents/notifiable-rails/db/migrate/20131210115649_create_notifiable_device_tokens.rb:12)
|
140
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "notifiable_device_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar, "provider" varchar, "locale" varchar, "is_valid" boolean DEFAULT 't', "user_id" integer, "app_id" integer, "created_at" datetime, "updated_at" datetime)
|
141
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_notifiable_device_tokens_on_user_id" ON "notifiable_device_tokens" ("user_id")[0m
|
142
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115649"]]
|
143
|
-
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
144
|
-
Migrating to CreateNotifiableNotifications (20131210115650)
|
145
|
-
[1m[35m (0.0ms)[0m begin transaction
|
146
|
-
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/matt/Documents/notifiable-rails/db/migrate/20131210115650_create_notifiable_notifications.rb:23)
|
147
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "notifiable_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "app_id" integer, "sent_count" integer DEFAULT 0, "gateway_accepted_count" integer DEFAULT 0, "opened_count" integer DEFAULT 0, "message" text, "parameters" text, "sound" varchar, "identifier" varchar, "expiry" datetime, "content_available" boolean, "mutable_content" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
148
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115650"]]
|
149
|
-
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
150
|
-
Migrating to CreateNotifiableStatuses (20131210115652)
|
151
|
-
[1m[35m (0.0ms)[0m begin transaction
|
152
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "notifiable_statuses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_id" integer, "device_token_id" integer, "status" integer, "created_at" datetime) [0m
|
153
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115652"]]
|
154
|
-
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
155
|
-
Migrating to AddNameToNotifiableDeviceTokens (20131210115653)
|
156
|
-
[1m[35m (0.0ms)[0m begin transaction
|
157
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "notifiable_device_tokens" ADD "name" varchar[0m
|
158
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115653"]]
|
159
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
160
|
-
Migrating to CreateUsers (20131210115660)
|
161
|
-
[1m[35m (0.0ms)[0m begin transaction
|
162
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL) [0m
|
163
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115660"]]
|
164
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
165
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
166
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
167
|
-
FROM sqlite_master
|
168
|
-
WHERE name='index_notifiable_device_tokens_on_user_id' AND type='index'
|
169
|
-
UNION ALL
|
170
|
-
SELECT sql
|
171
|
-
FROM sqlite_temp_master
|
172
|
-
WHERE name='index_notifiable_device_tokens_on_user_id' AND type='index'
|
173
|
-
[0m
|
174
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
175
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
176
|
-
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
177
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
178
|
-
Migrating to CreateNotifiableApps (20131210115648)
|
179
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
180
|
-
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/matt/Documents/notifiable-rails/db/migrate/20131210115648_create_notifiable_apps.rb:7)
|
181
|
-
[1m[35m (0.4ms)[0m CREATE TABLE "notifiable_apps" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "configuration" text, "created_at" datetime, "updated_at" datetime)
|
182
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131210115648"]]
|
183
|
-
[1m[35m (0.5ms)[0m commit transaction
|
184
|
-
Migrating to CreateNotifiableDeviceTokens (20131210115649)
|
185
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
186
|
-
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/matt/Documents/notifiable-rails/db/migrate/20131210115649_create_notifiable_device_tokens.rb:12)
|
187
|
-
[1m[35m (0.3ms)[0m CREATE TABLE "notifiable_device_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar, "provider" varchar, "locale" varchar, "is_valid" boolean DEFAULT 't', "user_alias" varchar, "app_id" integer, "created_at" datetime, "updated_at" datetime)
|
188
|
-
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_notifiable_device_tokens_on_user_alias" ON "notifiable_device_tokens" ("user_alias")[0m
|
189
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115649"]]
|
190
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
191
|
-
Migrating to CreateNotifiableNotifications (20131210115650)
|
192
|
-
[1m[35m (0.0ms)[0m begin transaction
|
193
|
-
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/matt/Documents/notifiable-rails/db/migrate/20131210115650_create_notifiable_notifications.rb:23)
|
194
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "notifiable_notifications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "app_id" integer, "sent_count" integer DEFAULT 0, "gateway_accepted_count" integer DEFAULT 0, "opened_count" integer DEFAULT 0, "message" text, "parameters" text, "sound" varchar, "identifier" varchar, "expiry" datetime, "content_available" boolean, "mutable_content" boolean, "created_at" datetime, "updated_at" datetime) [0m
|
195
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115650"]]
|
196
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
197
|
-
Migrating to CreateNotifiableStatuses (20131210115652)
|
198
|
-
[1m[35m (0.0ms)[0m begin transaction
|
199
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "notifiable_statuses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notification_id" integer, "device_token_id" integer, "status" integer, "created_at" datetime) [0m
|
200
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115652"]]
|
201
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
202
|
-
Migrating to AddNameToNotifiableDeviceTokens (20131210115653)
|
203
|
-
[1m[35m (0.1ms)[0m begin transaction
|
204
|
-
[1m[36m (0.3ms)[0m [1mALTER TABLE "notifiable_device_tokens" ADD "name" varchar[0m
|
205
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115653"]]
|
206
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
207
|
-
Migrating to CreateUsers (20131210115660)
|
208
|
-
[1m[35m (0.1ms)[0m begin transaction
|
209
|
-
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar DEFAULT '' NOT NULL) [0m
|
210
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131210115660"]]
|
211
|
-
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
212
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
213
|
-
[1m[36m (0.1ms)[0m [1m SELECT sql
|
214
|
-
FROM sqlite_master
|
215
|
-
WHERE name='index_notifiable_device_tokens_on_user_alias' AND type='index'
|
216
|
-
UNION ALL
|
217
|
-
SELECT sql
|
218
|
-
FROM sqlite_temp_master
|
219
|
-
WHERE name='index_notifiable_device_tokens_on_user_alias' AND type='index'
|
86
|
+
[1m[36m (3.0ms)[0m [1mSELECT 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
|
87
|
+
FROM pg_constraint c
|
88
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
89
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
90
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
91
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
92
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
93
|
+
WHERE c.contype = 'f'
|
94
|
+
AND t1.relname = 'notifiable_notifications'
|
95
|
+
AND t3.nspname = ANY (current_schemas(false))
|
96
|
+
ORDER BY c.conname
|
220
97
|
[0m
|
221
|
-
[1m[
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
98
|
+
[1m[35m (5.2ms)[0m 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
|
99
|
+
FROM pg_constraint c
|
100
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
101
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
102
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
103
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
104
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
105
|
+
WHERE c.contype = 'f'
|
106
|
+
AND t1.relname = 'notifiable_statuses'
|
107
|
+
AND t3.nspname = ANY (current_schemas(false))
|
108
|
+
ORDER BY c.conname
|
109
|
+
|
110
|
+
[1m[36m (3.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
111
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
112
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
228
113
|
Migrating to CreateNotifiableApps (20131210115648)
|
229
114
|
[1m[35m (0.2ms)[0m BEGIN
|
230
|
-
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/
|
231
|
-
[1m[36m (
|
232
|
-
[1m[35mSQL (0.
|
233
|
-
[1m[36m (0.
|
115
|
+
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)
|
116
|
+
[1m[36m (6.6ms)[0m [1mCREATE TABLE "notifiable_apps" ("id" serial primary key, "name" character varying, "configuration" text, "created_at" timestamp, "updated_at" timestamp) [0m
|
117
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131210115648"]]
|
118
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
234
119
|
Migrating to CreateNotifiableDeviceTokens (20131210115649)
|
235
|
-
[1m[
|
236
|
-
|
237
|
-
[1m[
|
238
|
-
|
239
|
-
[1m[36m (4.3ms)[0m [1mCREATE 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) [0m
|
240
|
-
[1m[35m (0.9ms)[0m CREATE INDEX "index_notifiable_device_tokens_on_user_alias" ON "notifiable_device_tokens" ("user_alias")
|
120
|
+
[1m[35m (0.4ms)[0m BEGIN
|
121
|
+
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)
|
122
|
+
[1m[36m (4.5ms)[0m [1mCREATE 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) [0m
|
123
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_notifiable_device_tokens_on_user_alias" ON "notifiable_device_tokens" ("user_alias")
|
241
124
|
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131210115649"]]
|
242
|
-
[1m[35m (0.
|
125
|
+
[1m[35m (0.6ms)[0m COMMIT
|
243
126
|
Migrating to CreateNotifiableNotifications (20131210115650)
|
244
127
|
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
245
|
-
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/
|
246
|
-
[1m[35m (3.
|
128
|
+
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)
|
129
|
+
[1m[35m (3.6ms)[0m 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)
|
247
130
|
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131210115650"]]
|
248
|
-
[1m[35m (0.
|
131
|
+
[1m[35m (0.4ms)[0m COMMIT
|
249
132
|
Migrating to CreateNotifiableStatuses (20131210115652)
|
250
133
|
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
251
|
-
[1m[35m (2.
|
134
|
+
[1m[35m (2.5ms)[0m CREATE TABLE "notifiable_statuses" ("id" serial primary key, "notification_id" integer, "device_token_id" integer, "status" integer, "created_at" timestamp)
|
252
135
|
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131210115652"]]
|
253
|
-
[1m[35m (0.
|
136
|
+
[1m[35m (0.4ms)[0m COMMIT
|
254
137
|
Migrating to AddNameToNotifiableDeviceTokens (20131210115653)
|
255
138
|
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
256
|
-
[1m[35m (
|
139
|
+
[1m[35m (2.5ms)[0m ALTER TABLE "notifiable_device_tokens" ADD "name" character varying
|
257
140
|
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20131210115653"]]
|
258
|
-
[1m[35m (0.
|
141
|
+
[1m[35m (0.5ms)[0m COMMIT
|
259
142
|
Migrating to AddBadgeCountToNotifiableNotifications (20161208221332)
|
260
|
-
[1m[36m (0.
|
143
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
261
144
|
[1m[35m (0.3ms)[0m ALTER TABLE "notifiable_notifications" ADD "badge_count" integer
|
262
|
-
[1m[36mSQL (0.
|
263
|
-
[1m[35m (0.
|
145
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161208221332"]]
|
146
|
+
[1m[35m (0.4ms)[0m COMMIT
|
264
147
|
Migrating to RemoveIsValidFromNotifiableDeviceTokens (20170108221332)
|
265
148
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
266
|
-
[1m[35m (1.
|
267
|
-
[1m[36mSQL (0.
|
268
|
-
[1m[35m (0.
|
149
|
+
[1m[35m (1.5ms)[0m ALTER TABLE "notifiable_device_tokens" DROP "is_valid"
|
150
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170108221332"]]
|
151
|
+
[1m[35m (0.4ms)[0m COMMIT
|
269
152
|
Migrating to AddAppIdTokenIndexToNotifiableDeviceTokens (20170108221432)
|
270
|
-
[1m[36m (0.
|
271
|
-
[1m[35m (
|
272
|
-
[1m[36mSQL (0.
|
273
|
-
[1m[35m (0.
|
153
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
154
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_notifiable_device_tokens_on_app_id_and_token" ON "notifiable_device_tokens" ("app_id", "token")
|
155
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170108221432"]]
|
156
|
+
[1m[35m (0.4ms)[0m COMMIT
|
274
157
|
Migrating to AddLatLonToNotifiableDeviceTokens (20170116212641)
|
275
158
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
276
|
-
[1m[35mSQL (0.
|
277
|
-
[1m[36m (
|
278
|
-
[1m[35mSQL (0.
|
279
|
-
[1m[36m (0.
|
159
|
+
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "postgis"
|
160
|
+
[1m[36m (8.0ms)[0m [1mALTER TABLE "notifiable_device_tokens" ADD "lonlat" geography(POINT,4326)[0m
|
161
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170116212641"]]
|
162
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
163
|
+
Migrating to AddLastErrorMessageToNotifications (20180302212641)
|
164
|
+
[1m[35m (0.1ms)[0m BEGIN
|
165
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "notifiable_notifications" ADD "last_error_message" text[0m
|
166
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20180302212641"]]
|
167
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
280
168
|
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
281
|
-
[1m[36m (
|
169
|
+
[1m[36m (4.6ms)[0m [1mSELECT 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
|
282
170
|
FROM pg_constraint c
|
283
171
|
JOIN pg_class t1 ON c.conrelid = t1.oid
|
284
172
|
JOIN pg_class t2 ON c.confrelid = t2.oid
|
@@ -290,7 +178,7 @@ WHERE c.contype = 'f'
|
|
290
178
|
AND t3.nspname = ANY (current_schemas(false))
|
291
179
|
ORDER BY c.conname
|
292
180
|
[0m
|
293
|
-
[1m[35m (
|
181
|
+
[1m[35m (4.1ms)[0m 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
|
294
182
|
FROM pg_constraint c
|
295
183
|
JOIN pg_class t1 ON c.conrelid = t1.oid
|
296
184
|
JOIN pg_class t2 ON c.confrelid = t2.oid
|
@@ -302,7 +190,7 @@ WHERE c.contype = 'f'
|
|
302
190
|
AND t3.nspname = ANY (current_schemas(false))
|
303
191
|
ORDER BY c.conname
|
304
192
|
|
305
|
-
[1m[36m (
|
193
|
+
[1m[36m (3.6ms)[0m [1mSELECT 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
|
306
194
|
FROM pg_constraint c
|
307
195
|
JOIN pg_class t1 ON c.conrelid = t1.oid
|
308
196
|
JOIN pg_class t2 ON c.confrelid = t2.oid
|
@@ -314,7 +202,7 @@ WHERE c.contype = 'f'
|
|
314
202
|
AND t3.nspname = ANY (current_schemas(false))
|
315
203
|
ORDER BY c.conname
|
316
204
|
[0m
|
317
|
-
[1m[35m (3.
|
205
|
+
[1m[35m (3.4ms)[0m 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
|
318
206
|
FROM pg_constraint c
|
319
207
|
JOIN pg_class t1 ON c.conrelid = t1.oid
|
320
208
|
JOIN pg_class t2 ON c.confrelid = t2.oid
|
@@ -326,9 +214,3 @@ WHERE c.contype = 'f'
|
|
326
214
|
AND t3.nspname = ANY (current_schemas(false))
|
327
215
|
ORDER BY c.conname
|
328
216
|
|
329
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
330
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
331
|
-
Migrating to AddLatLonToNotifiableDeviceTokens (20170116212641)
|
332
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
333
|
-
[1m[35m (1.0ms)[0m ALTER TABLE "notifiable_device_tokens" DROP "lonlat"
|
334
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|