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.
This commit is contained in:
Sebastian 2022-06-06 21:07:33 +02:00
parent d3ac49bca4
commit bef575c66f

@ -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