diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-11-24 00:48:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-24 00:48:29 +0100 |
commit | 8556ab505a0a91efb529039b653984ab2b466a7e (patch) | |
tree | f6b0b69b72b80244d602c6ac407f631c93ea28d4 /activerecord/test/schema | |
parent | 44d58cd438dcb0b1f0d7b396cad3556247ea5983 (diff) | |
parent | b915b11cca558eb99b7c2621c4457491d4bdb43b (diff) | |
download | rails-8556ab505a0a91efb529039b653984ab2b466a7e.tar.gz rails-8556ab505a0a91efb529039b653984ab2b466a7e.tar.bz2 rails-8556ab505a0a91efb529039b653984ab2b466a7e.zip |
Merge pull request #25395 from yawboakye/use_gen_random_uuid_from_pgcrypto_extension
For PostgreSQL >= 9.4 use `gen_random_uuid()`
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/postgresql_specific_schema.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/schema/postgresql_specific_schema.rb b/activerecord/test/schema/postgresql_specific_schema.rb index f00b858ea6..15ba2d67ab 100644 --- a/activerecord/test/schema/postgresql_specific_schema.rb +++ b/activerecord/test/schema/postgresql_specific_schema.rb @@ -1,6 +1,7 @@ ActiveRecord::Schema.define do enable_extension!("uuid-ossp", ActiveRecord::Base.connection) + enable_extension!("pgcrypto", ActiveRecord::Base.connection) if ActiveRecord::Base.connection.supports_pgcrypto_uuid? create_table :uuid_parents, id: :uuid, force: true do |t| t.string :name |