aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-06-17 22:38:18 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-06-17 22:38:18 -0300
commit3999f9cf0f16585ecd0e8bcd3bc482b46779e8cb (patch)
treead02611c16080aab8c09b9d294f6693386de6daa /activerecord
parent9dcdf3e7f6ec88a622ffdfe65f799efcf0c4797e (diff)
parent6e2d3d857e2d8adc3bbc932e2094400560766946 (diff)
downloadrails-3999f9cf0f16585ecd0e8bcd3bc482b46779e8cb.tar.gz
rails-3999f9cf0f16585ecd0e8bcd3bc482b46779e8cb.tar.bz2
rails-3999f9cf0f16585ecd0e8bcd3bc482b46779e8cb.zip
Merge pull request #15789 from sgrif/sg-enable-hstore
Enable hstore in array tests
Diffstat (limited to 'activerecord')
-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