From bef575c66f1ecf61510c06f44c8df61d87dd0ecf Mon Sep 17 00:00:00 2001 From: Sebastian <76834087+se2342@users.noreply.github.com> Date: Mon, 6 Jun 2022 21:07:33 +0200 Subject: [PATCH] Reflect PostgreSQL UUID functionality part of core since v13.0 This change to the guides reflects that the PostgreSQL function used to generate UUIDs `gen_random_uuid ()` is part of PostgreSQL core beginning with version 13.0. No special extensions are needed for users who want to use UUIDs with PostgreSQL equal or greater version 13.0. See https://www.postgresql.org/docs/current/functions-uuid.html and https://www.postgresql.org/docs/release/13.0/ (look for `gen_random_uuid()` in release notes) for further reference. --- guides/source/active_record_postgresql.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/guides/source/active_record_postgresql.md b/guides/source/active_record_postgresql.md index bfcaffc6f0..1abaf04ef1 100644 --- a/guides/source/active_record_postgresql.md +++ b/guides/source/active_record_postgresql.md @@ -325,8 +325,7 @@ SELECT n.nspname AS enum_schema, * [pgcrypto generator function](https://www.postgresql.org/docs/current/static/pgcrypto.html) * [uuid-ossp generator functions](https://www.postgresql.org/docs/current/static/uuid-ossp.html) -NOTE: You need to enable the `pgcrypto` (only PostgreSQL >= 9.4) or `uuid-ossp` -extension to use uuid. +NOTE: If you're using PostgreSQL earlier than version 13.0 you may need to enable special extensions to use UUIDs. Enable the `pgcrypto` extension (PostgreSQL >= 9.4) or `uuid-ossp` extension (for even earlier releases). ```ruby # db/migrate/20131220144913_create_revisions.rb