aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-06-17 19:37:29 -0600
committerSean Griffin <sean@thoughtbot.com>2014-06-17 19:37:29 -0600
commit6e2d3d857e2d8adc3bbc932e2094400560766946 (patch)
treead02611c16080aab8c09b9d294f6693386de6daa /activerecord/test/cases
parent9dcdf3e7f6ec88a622ffdfe65f799efcf0c4797e (diff)
downloadrails-6e2d3d857e2d8adc3bbc932e2094400560766946.tar.gz
rails-6e2d3d857e2d8adc3bbc932e2094400560766946.tar.bz2
rails-6e2d3d857e2d8adc3bbc932e2094400560766946.zip
Enable hstore in array tests
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/adapters/postgresql/array_test.rb6
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