diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-17 22:38:18 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-17 22:38:18 -0300 |
commit | 3999f9cf0f16585ecd0e8bcd3bc482b46779e8cb (patch) | |
tree | ad02611c16080aab8c09b9d294f6693386de6daa /activerecord/test/cases/adapters/postgresql/array_test.rb | |
parent | 9dcdf3e7f6ec88a622ffdfe65f799efcf0c4797e (diff) | |
parent | 6e2d3d857e2d8adc3bbc932e2094400560766946 (diff) | |
download | rails-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/test/cases/adapters/postgresql/array_test.rb')
-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 |