human_urls 0.1.4.pre.alpha.0 → 0.1.7.pre.alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/human_urls/sluggable.rb +1 -0
- data/lib/human_urls/version.rb +1 -1
- data/test/dummy/config/database.yml +4 -2
- data/test/dummy/config/environments/development.rb +0 -17
- data/test/dummy/log/development.log +173 -111
- data/test/dummy/log/test.log +92 -5804
- data/test/dummy/tmp/generators/db/migrate/{20160701154405_add_slug_to_posts.rb → 20220228195706_add_slug_to_posts.rb} +0 -0
- data/test/human_urls/sluggable_test.rb +12 -0
- metadata +29 -18
- data/test/dummy/config/initializers/assets.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9586d35e769b50f312e3588065343dec9becefd8dc4b5b8f3228d43edfb865a3
|
4
|
+
data.tar.gz: 95c140255c5dc6fb3ab36e8f44f77de94ad0cc898e1f8e9a68092372ff9fda82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07f4ad3bb7425dec547e8e6890d995f0e21e3eedd2e888b5450b20b8d1d15563fd2a0c8177fcca1e3ccd57fc70a00565f65794b6812ee84e3391b0d5cc49b9f7
|
7
|
+
data.tar.gz: f14a6cfec95e4562c3b0aacbc6ed57a28bc76f6146119562588b1400b69b85d81a0fe52b9377358de8fa8d2800ff926d775bc78e26593a8db03e84725486058a
|
data/lib/human_urls/sluggable.rb
CHANGED
@@ -10,6 +10,7 @@ module HumanUrls
|
|
10
10
|
module ClassMethods
|
11
11
|
def sluggify(slug_param=:slug, generated_from: false)
|
12
12
|
validates_presence_of slug_param
|
13
|
+
validates_uniqueness_of slug_param, case_sensitive: false
|
13
14
|
validates_length_of slug_param, maximum: 244
|
14
15
|
|
15
16
|
define_method(:to_param) do
|
data/lib/human_urls/version.rb
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
default: &default
|
2
2
|
adapter: postgresql
|
3
3
|
encoding: unicode
|
4
|
-
|
4
|
+
username: human_urls
|
5
|
+
password: password
|
6
|
+
host: db
|
7
|
+
port: 5432
|
5
8
|
|
6
9
|
development:
|
7
10
|
<<: *default
|
@@ -9,4 +12,3 @@ development:
|
|
9
12
|
test:
|
10
13
|
<<: *default
|
11
14
|
database: human_urls_test
|
12
|
-
|
@@ -21,21 +21,4 @@ Rails.application.configure do
|
|
21
21
|
|
22
22
|
# Raise an error on page load if there are pending migrations.
|
23
23
|
config.active_record.migration_error = :page_load
|
24
|
-
|
25
|
-
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
-
# This option may cause significant delays in view rendering with a large
|
27
|
-
# number of complex assets.
|
28
|
-
config.assets.debug = true
|
29
|
-
|
30
|
-
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
31
|
-
# yet still be able to expire them through the digest params.
|
32
|
-
config.assets.digest = true
|
33
|
-
|
34
|
-
# Adds additional error checking when serving assets at runtime.
|
35
|
-
# Checks for improperly declared sprockets dependencies.
|
36
|
-
# Raises helpful error messages.
|
37
|
-
config.assets.raise_runtime_errors = true
|
38
|
-
|
39
|
-
# Raises error for missing translations
|
40
|
-
# config.action_view.raise_on_missing_translations = true
|
41
24
|
end
|
@@ -1,114 +1,176 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
1
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
2
|
+
`legacy_connection_handling` to `false` in your application.
|
3
|
+
|
4
|
+
The new connection handling does not support `connection_handlers`
|
5
|
+
getter and setter.
|
6
|
+
|
7
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
8
|
+
(called from block in execute at /usr/local/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281)
|
9
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
10
|
+
`legacy_connection_handling` to `false` in your application.
|
11
|
+
|
12
|
+
The new connection handling does not support `connection_handlers`
|
13
|
+
getter and setter.
|
14
|
+
|
15
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
16
|
+
(called from block in execute at /usr/local/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281)
|
17
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
18
|
+
`legacy_connection_handling` to `false` in your application.
|
19
|
+
|
20
|
+
The new connection handling does not support `connection_handlers`
|
21
|
+
getter and setter.
|
22
|
+
|
23
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
24
|
+
(called from block in execute at /usr/local/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281)
|
25
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
26
|
+
`legacy_connection_handling` to `false` in your application.
|
27
|
+
|
28
|
+
The new connection handling does not support `connection_handlers`
|
29
|
+
getter and setter.
|
30
|
+
|
31
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
32
|
+
(called from block in execute at /usr/local/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281)
|
33
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
34
|
+
`legacy_connection_handling` to `false` in your application.
|
35
|
+
|
36
|
+
The new connection handling does not support `connection_handlers`
|
37
|
+
getter and setter.
|
38
|
+
|
39
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
40
|
+
(called from block in execute at /usr/local/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281)
|
41
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
42
|
+
`legacy_connection_handling` to `false` in your application.
|
43
|
+
|
44
|
+
The new connection handling does not support `connection_handlers`
|
45
|
+
getter and setter.
|
46
|
+
|
47
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
48
|
+
(called from block in execute at /usr/local/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281)
|
49
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
50
|
+
`legacy_connection_handling` to `false` in your application.
|
51
|
+
|
52
|
+
The new connection handling does not support `connection_handlers`
|
53
|
+
getter and setter.
|
54
|
+
|
55
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
56
|
+
(called from block in execute at /usr/local/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281)
|
57
|
+
[1m[35m (589.4ms)[0m [1m[35mCREATE DATABASE "human_urls_development" ENCODING = 'unicode'[0m
|
58
|
+
[1m[35m (577.4ms)[0m [1m[35mCREATE DATABASE "human_urls_test" ENCODING = 'unicode'[0m
|
59
|
+
[1m[35mSQL (0.2ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
60
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "taggable_w_generated_slugs" CASCADE[0m
|
61
|
+
[1m[35m (102.2ms)[0m [1m[35mCREATE TABLE "taggable_w_generated_slugs" ("id" bigserial primary key, "title" character varying, "slug" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
62
|
+
[1m[35m (61.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_taggable_w_generated_slugs_on_slug" ON "taggable_w_generated_slugs" USING btree ("slug")[0m
|
63
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "taggables" CASCADE[0m
|
64
|
+
[1m[35m (109.0ms)[0m [1m[35mCREATE TABLE "taggables" ("id" bigserial primary key, "title" character varying, "slug" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
65
|
+
[1m[35m (71.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_taggables_on_slug" ON "taggables" USING btree ("slug")[0m
|
66
|
+
[1m[35m (121.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
67
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
68
|
+
[1m[35m (22.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20151029012517)[0m
|
69
|
+
[1m[35m (20.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
70
|
+
(20151022230845),
|
71
|
+
(20151029003656);
|
72
|
+
|
73
|
+
[0m
|
74
|
+
[1m[35m (107.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
75
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
76
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m
|
77
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2022-02-28 19:56:55.241257"], ["updated_at", "2022-02-28 19:56:55.241257"]]
|
78
|
+
[1m[36mTRANSACTION (19.7ms)[0m [1m[35mCOMMIT[0m
|
79
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
80
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
81
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m
|
82
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "schema_sha1"], ["value", "d264ad43fe3ce8af511c4860b3dbacc61e5f758d"], ["created_at", "2022-02-28 19:56:55.270973"], ["updated_at", "2022-02-28 19:56:55.270973"]]
|
83
|
+
[1m[36mTRANSACTION (19.7ms)[0m [1m[35mCOMMIT[0m
|
84
|
+
[1m[35mSQL (0.2ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
85
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "taggable_w_generated_slugs" CASCADE[0m
|
86
|
+
[1m[35m (104.3ms)[0m [1m[35mCREATE TABLE "taggable_w_generated_slugs" ("id" bigserial primary key, "title" character varying, "slug" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
87
|
+
[1m[35m (64.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_taggable_w_generated_slugs_on_slug" ON "taggable_w_generated_slugs" USING btree ("slug")[0m
|
88
|
+
[1m[35m (2.7ms)[0m [1m[35mDROP TABLE IF EXISTS "taggables" CASCADE[0m
|
89
|
+
[1m[35m (115.3ms)[0m [1m[35mCREATE TABLE "taggables" ("id" bigserial primary key, "title" character varying, "slug" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
90
|
+
[1m[35m (72.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_taggables_on_slug" ON "taggables" USING btree ("slug")[0m
|
91
|
+
[1m[35m (114.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
92
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (2.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
93
|
+
[1m[35m (21.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20151029012517)[0m
|
94
|
+
[1m[35m (20.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
95
|
+
(20151022230845),
|
96
|
+
(20151029003656);
|
97
|
+
|
54
98
|
[0m
|
55
|
-
[1m[
|
56
|
-
[1m[
|
57
|
-
[1m[
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
WHERE
|
65
|
-
|
66
|
-
|
67
|
-
|
99
|
+
[1m[35m (112.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
100
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
101
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m
|
102
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.8ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2022-02-28 19:56:56.045298"], ["updated_at", "2022-02-28 19:56:56.045298"]]
|
103
|
+
[1m[36mTRANSACTION (20.5ms)[0m [1m[35mCOMMIT[0m
|
104
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
105
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m
|
106
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.5ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2022-02-28 19:56:56.076985"], ["key", "environment"]]
|
107
|
+
[1m[36mTRANSACTION (19.9ms)[0m [1m[35mCOMMIT[0m
|
108
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
109
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m
|
110
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "schema_sha1"], ["value", "d264ad43fe3ce8af511c4860b3dbacc61e5f758d"], ["created_at", "2022-02-28 19:56:56.107704"], ["updated_at", "2022-02-28 19:56:56.107704"]]
|
111
|
+
[1m[36mTRANSACTION (20.8ms)[0m [1m[35mCOMMIT[0m
|
112
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
113
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
114
|
+
`legacy_connection_handling` to `false` in your application.
|
115
|
+
|
116
|
+
The new connection handling does not support `connection_handlers`
|
117
|
+
getter and setter.
|
118
|
+
|
119
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
120
|
+
(called from block in execute at /usr/local/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281)
|
121
|
+
[1m[35m (676.0ms)[0m [1m[35mCREATE DATABASE "human_urls_development" ENCODING = 'unicode'[0m
|
122
|
+
[1m[35m (548.2ms)[0m [1m[35mCREATE DATABASE "human_urls_test" ENCODING = 'unicode'[0m
|
123
|
+
[1m[35mSQL (0.2ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
124
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "taggable_w_generated_slugs" CASCADE[0m
|
125
|
+
[1m[35m (100.1ms)[0m [1m[35mCREATE TABLE "taggable_w_generated_slugs" ("id" bigserial primary key, "title" character varying, "slug" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
126
|
+
[1m[35m (60.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_taggable_w_generated_slugs_on_slug" ON "taggable_w_generated_slugs" USING btree ("slug")[0m
|
127
|
+
[1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "taggables" CASCADE[0m
|
128
|
+
[1m[35m (108.4ms)[0m [1m[35mCREATE TABLE "taggables" ("id" bigserial primary key, "title" character varying, "slug" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
129
|
+
[1m[35m (73.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_taggables_on_slug" ON "taggables" USING btree ("slug")[0m
|
130
|
+
[1m[35m (119.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
131
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
132
|
+
[1m[35m (19.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20151029012517)[0m
|
133
|
+
[1m[35m (20.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
134
|
+
(20151022230845),
|
135
|
+
(20151029003656);
|
136
|
+
|
68
137
|
[0m
|
69
|
-
[1m[35m (
|
70
|
-
FROM
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
[1m[
|
82
|
-
|
83
|
-
[1m[35m (
|
84
|
-
[1m[
|
85
|
-
[1m[35m (
|
86
|
-
[1m[
|
87
|
-
[1m[
|
88
|
-
[1m[
|
89
|
-
[1m[35m (
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
94
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
95
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
96
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
97
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
98
|
-
WHERE c.contype = 'f'
|
99
|
-
AND t1.relname = 'taggable_w_generated_slugs'
|
100
|
-
AND t3.nspname = ANY (current_schemas(false))
|
101
|
-
ORDER BY c.conname
|
102
|
-
|
103
|
-
[1m[36m (7.2ms)[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
|
104
|
-
FROM pg_constraint c
|
105
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
106
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
107
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
108
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
109
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
110
|
-
WHERE c.contype = 'f'
|
111
|
-
AND t1.relname = 'taggables'
|
112
|
-
AND t3.nspname = ANY (current_schemas(false))
|
113
|
-
ORDER BY c.conname
|
138
|
+
[1m[35m (103.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
139
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
140
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m
|
141
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.7ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2022-03-01 13:32:18.991061"], ["updated_at", "2022-03-01 13:32:18.991061"]]
|
142
|
+
[1m[36mTRANSACTION (20.5ms)[0m [1m[35mCOMMIT[0m
|
143
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
144
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
145
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
146
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "schema_sha1"], ["value", "d264ad43fe3ce8af511c4860b3dbacc61e5f758d"], ["created_at", "2022-03-01 13:32:19.023696"], ["updated_at", "2022-03-01 13:32:19.023696"]]
|
147
|
+
[1m[36mTRANSACTION (20.0ms)[0m [1m[35mCOMMIT[0m
|
148
|
+
[1m[35mSQL (0.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
149
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "taggable_w_generated_slugs" CASCADE[0m
|
150
|
+
[1m[35m (100.7ms)[0m [1m[35mCREATE TABLE "taggable_w_generated_slugs" ("id" bigserial primary key, "title" character varying, "slug" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
151
|
+
[1m[35m (82.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_taggable_w_generated_slugs_on_slug" ON "taggable_w_generated_slugs" USING btree ("slug")[0m
|
152
|
+
[1m[35m (3.0ms)[0m [1m[35mDROP TABLE IF EXISTS "taggables" CASCADE[0m
|
153
|
+
[1m[35m (118.1ms)[0m [1m[35mCREATE TABLE "taggables" ("id" bigserial primary key, "title" character varying, "slug" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
154
|
+
[1m[35m (71.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_taggables_on_slug" ON "taggables" USING btree ("slug")[0m
|
155
|
+
[1m[35m (106.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
156
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
157
|
+
[1m[35m (20.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20151029012517)[0m
|
158
|
+
[1m[35m (20.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
159
|
+
(20151022230845),
|
160
|
+
(20151029003656);
|
161
|
+
|
114
162
|
[0m
|
163
|
+
[1m[35m (116.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
164
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
165
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m
|
166
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.9ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2022-03-01 13:32:19.813390"], ["updated_at", "2022-03-01 13:32:19.813390"]]
|
167
|
+
[1m[36mTRANSACTION (20.5ms)[0m [1m[35mCOMMIT[0m
|
168
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
169
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m
|
170
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.6ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2022-03-01 13:32:19.845012"], ["key", "environment"]]
|
171
|
+
[1m[36mTRANSACTION (20.0ms)[0m [1m[35mCOMMIT[0m
|
172
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
173
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m
|
174
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "schema_sha1"], ["value", "d264ad43fe3ce8af511c4860b3dbacc61e5f758d"], ["created_at", "2022-03-01 13:32:19.875844"], ["updated_at", "2022-03-01 13:32:19.875844"]]
|
175
|
+
[1m[36mTRANSACTION (21.0ms)[0m [1m[35mCOMMIT[0m
|
176
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|