From 6e2d3d857e2d8adc3bbc932e2094400560766946 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Tue, 17 Jun 2014 19:37:29 -0600 Subject: Enable hstore in array tests --- activerecord/test/cases/adapters/postgresql/array_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activerecord/test/cases') 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 -- cgit v1.2.3