diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-06-17 19:37:29 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-06-17 19:37:29 -0600 |
commit | 6e2d3d857e2d8adc3bbc932e2094400560766946 (patch) | |
tree | ad02611c16080aab8c09b9d294f6693386de6daa /activerecord | |
parent | 9dcdf3e7f6ec88a622ffdfe65f799efcf0c4797e (diff) | |
download | rails-6e2d3d857e2d8adc3bbc932e2094400560766946.tar.gz rails-6e2d3d857e2d8adc3bbc932e2094400560766946.tar.bz2 rails-6e2d3d857e2d8adc3bbc932e2094400560766946.zip |
Enable hstore in array tests
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/array_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/array_test.rb b/activerecord/test/cases/adapters/postgresql/array_test.rb index 266592e2c7..4775b53eac 100644 --- a/activerecord/test/cases/adapters/postgresql/array_test.rb +++ b/activerecord/test/cases/adapters/postgresql/array_test.rb @@ -11,6 +11,12 @@ class PostgresqlArrayTest < ActiveRecord::TestCase def setup @connection = ActiveRecord::Base.connection + + unless @connection.extension_enabled?('hstore') + @connection.enable_extension 'hstore' + @connection.commit_db_transaction + end + @connection.transaction do @connection.create_table('pg_arrays') do |t| t.string 'tags', array: true |