aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/postgresql_specific_schema.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-11-24 00:48:29 +0100
committerGitHub <noreply@github.com>2016-11-24 00:48:29 +0100
commit8556ab505a0a91efb529039b653984ab2b466a7e (patch)
treef6b0b69b72b80244d602c6ac407f631c93ea28d4 /activerecord/test/schema/postgresql_specific_schema.rb
parent44d58cd438dcb0b1f0d7b396cad3556247ea5983 (diff)
parentb915b11cca558eb99b7c2621c4457491d4bdb43b (diff)
downloadrails-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/postgresql_specific_schema.rb')
-rw-r--r--activerecord/test/schema/postgresql_specific_schema.rb1
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