diff options
author | Matthew Draper <matthew@trebex.net> | 2015-12-15 16:48:20 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2015-12-15 16:48:20 +1030 |
commit | de2135209f39a4d336916feceab972bc89dc93de (patch) | |
tree | 6c70a2a57a4a371e29a051731243a5f9d2779c58 | |
parent | 87e44814679625b4d8093aea253fe49e23f2c1b4 (diff) | |
download | rails-de2135209f39a4d336916feceab972bc89dc93de.tar.gz rails-de2135209f39a4d336916feceab972bc89dc93de.tar.bz2 rails-de2135209f39a4d336916feceab972bc89dc93de.zip |
Ensure uuid-ossp extension is present before we rely on it
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/uuid_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb index 7127d69e9e..049ed1732e 100644 --- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb +++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb @@ -20,6 +20,8 @@ class PostgresqlUUIDTest < ActiveRecord::PostgreSQLTestCase end setup do + enable_extension!('uuid-ossp', connection) + connection.create_table "uuid_data_type" do |t| t.uuid 'guid' end |